Skip to content

Commit 666170d

Browse files
fix format
1 parent 60c98da commit 666170d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Modbus_TCP_Client.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class Client {
3333
* @param tcp_timeout tcp timeout (currently only available on linux systems)
3434
*/
3535
explicit Client(const std::string &ip = "0.0.0.0",
36-
short unsigned int port = 502,
37-
modbus_mapping_t *mapping = nullptr,
38-
std::size_t tcp_timeout = 5);
36+
short unsigned int port = 502,
37+
modbus_mapping_t *mapping = nullptr,
38+
std::size_t tcp_timeout = 5);
3939

4040
/**
4141
* @brief create modbus client (TCP server) with dedicated mappings per client id
@@ -46,9 +46,9 @@ class Client {
4646
* @param tcp_timeout tcp timeout (currently only available on linux systems)
4747
*/
4848
Client(const std::string &ip,
49-
short unsigned int port,
50-
modbus_mapping_t *mappings[MAX_CLIENT_IDS],
51-
std::size_t tcp_timeout = 5);
49+
short unsigned int port,
50+
modbus_mapping_t *mappings[MAX_CLIENT_IDS],
51+
std::size_t tcp_timeout = 5);
5252

5353
/*! \brief destroy the modbus client
5454
*

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ int main(int argc, char **argv) {
312312
std::unique_ptr<Modbus::TCP::Client> client;
313313
try {
314314
client = std::make_unique<Modbus::TCP::Client>(args["ip"].as<std::string>(),
315-
args["port"].as<uint16_t>(),
316-
mb_mappings.data(),
315+
args["port"].as<uint16_t>(),
316+
mb_mappings.data(),
317317
#ifdef OS_LINUX
318-
args["tcp-timeout"].as<std::size_t>());
318+
args["tcp-timeout"].as<std::size_t>());
319319
#else
320-
0);
320+
0);
321321
#endif
322322
client->set_debug(args.count("monitor"));
323323
} catch (const std::runtime_error &e) {

0 commit comments

Comments
 (0)