From ee34e311bc4a79458ed16aefbd34774fe77e3811 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 19 4月 2015 17:03:55 +0800 Subject: [PATCH] Update c++ support --- examples/common/scpi-def.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/examples/common/scpi-def.c b/examples/common/scpi-def.c index 9e3cc5d..075f792 100644 --- a/examples/common/scpi-def.c +++ b/examples/common/scpi-def.c @@ -147,7 +147,7 @@ return SCPI_RES_ERR; } - fprintf(stderr, "\tP1=%s (%d)\r\n", trigger_source[param], param); + fprintf(stderr, "\tP1=%s (%ld)\r\n", trigger_source[param], (long int)param); SCPI_ResultInt(context, param); @@ -162,6 +162,8 @@ } static const scpi_command_t scpi_commands[] = { + /* { .pattern = "pattern", .callback = callback}, */ + /* IEEE Mandated Commands (SCPI std V1999.0 4.1.1) */ { .pattern = "*CLS", .callback = SCPI_CoreCls,}, { .pattern = "*ESE", .callback = SCPI_CoreEse,}, @@ -243,3 +245,4 @@ .special_numbers = scpi_special_numbers_def, .idn = {"MANUFACTURE", "INSTR2013", NULL, "01-02"}, }; + -- Gitblit v1.9.1