Commit 05984bc049b5450edce2a07c323f1f97ac34d930

Authored by Stéphane Raimbault
1 parent e6b8ba44

Rename raw_rep to raw_rsp in unit-test-client

Showing 1 changed file with 3 additions and 3 deletions
tests/unit-test-client.c
... ... @@ -452,8 +452,8 @@ int main(int argc, char *argv[])
452 452 uint8_t raw_req[] = { INVALID_SERVER_ID, 0x03, 0x00, 0x01, 0x01, 0x01 };
453 453 /* Too many points */
454 454 uint8_t raw_invalid_req[] = { INVALID_SERVER_ID, 0x03, 0x00, 0x01, 0xFF, 0xFF };
455   - const int RAW_REP_LENGTH = 7;
456   - uint8_t raw_rep[] = { INVALID_SERVER_ID, 0x03, 0x04, 0, 0, 0, 0 };
  455 + const int RAW_RSP_LENGTH = 7;
  456 + uint8_t raw_rsp[] = { INVALID_SERVER_ID, 0x03, 0x04, 0, 0, 0, 0 };
457 457 uint8_t rsp[MODBUS_RTU_MAX_ADU_LENGTH];
458 458  
459 459 /* No response in RTU mode */
... ... @@ -469,7 +469,7 @@ int main(int argc, char *argv[])
469 469 * slave will see the indication message then the confirmation, and it must
470 470 * ignore both. */
471 471 modbus_send_raw_request(ctx, raw_req, RAW_REQ_LENGTH * sizeof(uint8_t));
472   - modbus_send_raw_request(ctx, raw_rep, RAW_REP_LENGTH * sizeof(uint8_t));
  472 + modbus_send_raw_request(ctx, raw_rsp, RAW_RSP_LENGTH * sizeof(uint8_t));
473 473 rc = modbus_receive_confirmation(ctx, rsp);
474 474  
475 475 printf("1-B/4 No response from slave %d on indication/confirmation messages: ",
... ...