Commit 67f8d030de62af9702b8ea72f004a848df7758f6

Authored by Stéphane Raimbault
1 parent 018cdd6e

Message to indicate the sending of a special response in unit tests

Showing 1 changed file with 1 additions and 0 deletions
tests/unit-test-server.c
@@ -130,6 +130,7 @@ int main(int argc, char*argv[]) @@ -130,6 +130,7 @@ int main(int argc, char*argv[])
130 UT_REGISTERS_NB_POINTS); 130 UT_REGISTERS_NB_POINTS);
131 } else if (MODBUS_GET_INT16_FROM_INT8(query, header_length + 1) 131 } else if (MODBUS_GET_INT16_FROM_INT8(query, header_length + 1)
132 == UT_REGISTERS_ADDRESS_SPECIAL) { 132 == UT_REGISTERS_ADDRESS_SPECIAL) {
  133 + printf("Reply to this special register address by an exception\n");
133 modbus_reply_exception(ctx, query, 134 modbus_reply_exception(ctx, query,
134 MODBUS_EXCEPTION_SLAVE_OR_SERVER_BUSY); 135 MODBUS_EXCEPTION_SLAVE_OR_SERVER_BUSY);
135 continue; 136 continue;