From 7755a1c3bfca65316d0d7ff6648d4ef8e08e1856 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周三, 24 9月 2014 23:21:40 +0800 Subject: [PATCH] Merge support for matching number suffix from master --- examples/common/scpi-def.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/examples/common/scpi-def.c b/examples/common/scpi-def.c index cdfee2d..e7061bf 100644 --- a/examples/common/scpi-def.c +++ b/examples/common/scpi-def.c @@ -128,6 +128,13 @@ return SCPI_RES_OK; } +scpi_result_t TEST_Numbers(scpi_t * context) { + + fprintf(stderr, "RAW CMD %.*s\r\n", (int)context->param_list.cmd_raw.length, context->param_list.cmd_raw.data); + + return SCPI_RES_OK; +} + static const scpi_command_t scpi_commands[] = { /* IEEE Mandated Commands (SCPI std V1999.0 4.1.1) */ { .pattern = "*CLS", .callback = SCPI_CoreCls,}, @@ -178,6 +185,7 @@ {.pattern = "TEST:BOOL", .callback = TEST_Bool,}, {.pattern = "TEST:CHOice?", .callback = TEST_ChoiceQ,}, + {.pattern = "TEST#:NUMbers#", .callback = TEST_Numbers,}, SCPI_CMD_LIST_END }; -- Gitblit v1.9.1