From 40fb36f5705e29a37e9fb0fbe62dbd667514a2ee Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 18 1月 2015 19:36:03 +0800 Subject: [PATCH] Update longToStr and update tests --- examples/test-parser/main.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/test-parser/main.c b/examples/test-parser/main.c index fef4bdb..c4b3155 100644 --- a/examples/test-parser/main.c +++ b/examples/test-parser/main.c @@ -65,9 +65,16 @@ return SCPI_RES_OK; } -scpi_result_t SCPI_Test(scpi_t * context) { +/** + * 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; + return 0; } scpi_result_t SCPI_Reset(scpi_t * context) { -- Gitblit v1.9.1