Commit 9ea54e09907b78de0f09d8e4ebadbba8ea621aab
1 parent
dea51e1c
The request to check no response from the slave wasn't valid
Showing
1 changed file
with
1 additions
and
1 deletions
tests/unit-test-master.c
| ... | ... | @@ -451,7 +451,7 @@ int main(void) |
| 451 | 451 | /** SLAVE REPLY **/ |
| 452 | 452 | printf("\nTEST SLAVE REPLY:\n"); |
| 453 | 453 | rc = read_holding_registers(&mb_param, 18, |
| 454 | - UT_HOLDING_REGISTERS_ADDRESS+1, | |
| 454 | + UT_HOLDING_REGISTERS_ADDRESS, | |
| 455 | 455 | UT_HOLDING_REGISTERS_NB_POINTS, |
| 456 | 456 | tab_rp_registers); |
| 457 | 457 | printf("1/3 No reply from slave %d: ", 18); | ... | ... |