Skip to content

Commit 149678c

Browse files
fix format
1 parent af17427 commit 149678c

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

src/Modbus_RTU_Client.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ namespace RTU {
1313
static constexpr int MAX_REGS = 0x10000;
1414

1515
Client::Client(const std::string &device,
16-
int id,
17-
char parity,
18-
int data_bits,
19-
int stop_bits,
20-
int baud,
21-
bool rs232,
22-
bool rs485,
23-
modbus_mapping_t *mapping) {
16+
int id,
17+
char parity,
18+
int data_bits,
19+
int stop_bits,
20+
int baud,
21+
bool rs232,
22+
bool rs485,
23+
modbus_mapping_t *mapping) {
2424
// create modbus object
2525
modbus = modbus_new_rtu(device.c_str(), baud, parity, data_bits, stop_bits);
2626
if (modbus == nullptr) {

src/Modbus_RTU_Client.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ class Client {
3333
* @param mapping modbus mapping object (nullptr: an mapping object with maximum size is generated)
3434
*/
3535
explicit Client(const std::string &device,
36-
int id,
37-
char parity,
38-
int data_bits,
39-
int stop_bits,
40-
int baud,
41-
bool rs232,
42-
bool rs485,
43-
modbus_mapping_t *mapping = nullptr);
36+
int id,
37+
char parity,
38+
int data_bits,
39+
int stop_bits,
40+
int baud,
41+
bool rs232,
42+
bool rs485,
43+
modbus_mapping_t *mapping = nullptr);
4444

4545
/*! \brief destroy the modbus client
4646
*

src/main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,14 @@ int main(int argc, char **argv) {
231231
std::unique_ptr<Modbus::RTU::Client> client;
232232
try {
233233
client = std::make_unique<Modbus::RTU::Client>(args["device"].as<std::string>(),
234-
args["id"].as<int>(),
235-
PARITY,
236-
DATA_BITS,
237-
STOP_BITS,
238-
BAUD,
239-
args.count("rs232"),
240-
args.count("rs485"),
241-
mapping->get_mapping());
234+
args["id"].as<int>(),
235+
PARITY,
236+
DATA_BITS,
237+
STOP_BITS,
238+
BAUD,
239+
args.count("rs232"),
240+
args.count("rs485"),
241+
mapping->get_mapping());
242242
client->set_debug(args.count("monitor"));
243243
} catch (const std::runtime_error &e) {
244244
std::cerr << e.what() << std::endl;

0 commit comments

Comments
 (0)