Commit b00b27cbdc2fb5f9728c96b4eac448b81e0824ac

Authored by Stéphane Raimbault
1 parent d8ca3086

Fix typo in documentation of modbus_new_rtu

Showing 1 changed file with 1 additions and 1 deletions
doc/modbus_new_rtu.txt
@@ -59,7 +59,7 @@ EXAMPLE @@ -59,7 +59,7 @@ EXAMPLE
59 ------------------- 59 -------------------
60 modbus_t *ctx; 60 modbus_t *ctx;
61 61
62 -ctx = modbus_new_ru("/dev/ttyUSB0", 115200, 'N', 8, 1); 62 +ctx = modbus_new_rtu("/dev/ttyUSB0", 115200, 'N', 8, 1);
63 if (ctx == NULL) { 63 if (ctx == NULL) {
64 fprintf(stderr, "Unable to create the libmodbus context\n"); 64 fprintf(stderr, "Unable to create the libmodbus context\n");
65 return -1; 65 return -1;