From 67f8d030de62af9702b8ea72f004a848df7758f6 Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Sun, 1 May 2011 23:14:50 +0200 Subject: [PATCH] Message to indicate the sending of a special response in unit tests --- tests/unit-test-server.c | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/tests/unit-test-server.c b/tests/unit-test-server.c index b27d281..473b0f0 100644 --- a/tests/unit-test-server.c +++ b/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; -- libgit2 0.21.4