From 7cda47a529a298886d739d6a0c1a8114e6e0c6ad Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: ćšć, 27 8æ 2015 23:32:00 +0800 Subject: [PATCH] Remove pkg-config from cunit test build --- examples/test-interactive/main.c | 18 ++++-------------- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/examples/test-interactive/main.c b/examples/test-interactive/main.c index ba284e7..1742bb8 100644 --- a/examples/test-interactive/main.c +++ b/examples/test-interactive/main.c @@ -52,7 +52,7 @@ int SCPI_Error(scpi_t * context, int_fast16_t err) { (void) context; - 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; } @@ -63,18 +63,6 @@ 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 0; } scpi_result_t SCPI_Reset(scpi_t * context) { @@ -99,7 +87,9 @@ printf("SCPI Interactive demo\r\n"); char smbuffer[10]; while (1) { - fgets(smbuffer, 10, stdin); + if (NULL == fgets(smbuffer, 10, stdin)) { + break; + } SCPI_Input(&scpi_context, smbuffer, strlen(smbuffer)); } -- Gitblit v1.9.1