From a2006d9935f97a233f75942e1a3eab69f27cf4b3 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 19 4月 2015 17:59:23 +0800 Subject: [PATCH] Update c++ example, make special numbers more correct --- examples/test-tcp/main.c | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/examples/test-tcp/main.c b/examples/test-tcp/main.c index 596a4cf..e4d9c41 100644 --- a/examples/test-tcp/main.c +++ b/examples/test-tcp/main.c @@ -63,7 +63,7 @@ int SCPI_Error(scpi_t * context, int_fast16_t err) { (void) context; // BEEP - fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int32_t) err, SCPI_ErrorTranslate(err)); + fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int16_t) err, SCPI_ErrorTranslate(err)); return 0; } @@ -73,18 +73,6 @@ } else { fprintf(stderr, "**CTRL %02x: 0x%X (%d)\r\n", ctrl, val, val); } - return SCPI_RES_OK; -} - -/** - * Callback for *TST? command - * - * It returns directly the result of the test - * @param context - * @return 0 means "test was OK", other values means, that some error bits are set - */ -int32_t SCPI_Test(scpi_t * context) { - fprintf(stderr, "**Test\r\n"); return SCPI_RES_OK; } -- Gitblit v1.9.1