Explorar o código

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

Stéphane Raimbault %!s(int64=14) %!d(string=hai) anos
pai
achega
67f8d030de
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/unit-test-server.c

+ 1 - 0
tests/unit-test-server.c

@@ -130,6 +130,7 @@ int main(int argc, char*argv[])
                                          UT_REGISTERS_NB_POINTS);
             } else if (MODBUS_GET_INT16_FROM_INT8(query, header_length + 1)
                 == UT_REGISTERS_ADDRESS_SPECIAL) {
+                printf("Reply to this special register address by an exception\n");
                 modbus_reply_exception(ctx, query,
                                        MODBUS_EXCEPTION_SLAVE_OR_SERVER_BUSY);
                 continue;