瀏覽代碼

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

Stéphane Raimbault 14 年之前
父節點
當前提交
67f8d030de
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;