Explorar o código

The request to check no response from the slave wasn't valid

Stéphane Raimbault %!s(int64=15) %!d(string=hai) anos
pai
achega
9ea54e0990
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/unit-test-master.c

+ 1 - 1
tests/unit-test-master.c

@@ -451,7 +451,7 @@ int main(void)
         /** SLAVE REPLY **/
         printf("\nTEST SLAVE REPLY:\n");
         rc = read_holding_registers(&mb_param, 18,
-                                    UT_HOLDING_REGISTERS_ADDRESS+1,
+                                    UT_HOLDING_REGISTERS_ADDRESS,
                                     UT_HOLDING_REGISTERS_NB_POINTS,
                                     tab_rp_registers);
         printf("1/3 No reply from slave %d: ", 18);