Jan Breuer
2015-01-18 834faf3b0a91d6af089258d9917fbc86a92699a1
examples/common/scpi-def.c
@@ -118,7 +118,7 @@
}
scpi_result_t TEST_Bool(scpi_t * context) {
    bool_t param1;
    scpi_bool_t param1;
    fprintf(stderr, "TEST:BOOL\r\n"); // debug command name   
    // read first parameter if present
@@ -150,6 +150,13 @@
    fprintf(stderr, "\tP1=%s (%d)\r\n", trigger_source[param], param);
    
    SCPI_ResultInt(context, param);
    return SCPI_RES_OK;
}
scpi_result_t TEST_Numbers(scpi_t * context) {
    fprintf(stderr, "RAW CMD %.*s\r\n", (int)context->paramlist.cmd_raw.length, context->paramlist.cmd_raw.data);
    return SCPI_RES_OK;
}
@@ -204,6 +211,7 @@
    {.pattern = "TEST:BOOL", .callback = TEST_Bool,},
    {.pattern = "TEST:CHOice?", .callback = TEST_ChoiceQ,},
    {.pattern = "TEST#:NUMbers#", .callback = TEST_Numbers,},
    SCPI_CMD_LIST_END
};