소스 검색

Fix typo in documentation of modbus_new_rtu

Stéphane Raimbault 14 년 전
부모
커밋
b00b27cbdc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      doc/modbus_new_rtu.txt

+ 1 - 1
doc/modbus_new_rtu.txt

@@ -59,7 +59,7 @@ EXAMPLE
 -------------------
 modbus_t *ctx;
 
-ctx = modbus_new_ru("/dev/ttyUSB0", 115200, 'N', 8, 1);
+ctx = modbus_new_rtu("/dev/ttyUSB0", 115200, 'N', 8, 1);
 if (ctx == NULL) {
     fprintf(stderr, "Unable to create the libmodbus context\n");
     return -1;