Iztok Jeras
2015-10-07 524524123a12c1c5b22f1e1d2b40ad3692dcd3b2
examples/common/scpi-def.cpp
@@ -151,7 +151,7 @@
    SCPI_ChoiceToName(trigger_source, param, &name);
    fprintf(stderr, "\tP1=%s (%ld)\r\n", name, (long int)param);
    SCPI_ResultInt(context, param);
    SCPI_ResultInt32(context, param);
    return SCPI_RES_OK;
}
@@ -167,8 +167,9 @@
    char buffer[100];
    size_t copy_len;
    SCPI_ParamCopyText(context, buffer, sizeof(buffer), &copy_len, false);
    buffer[copy_len] = '\0';
    if(!SCPI_ParamCopyText(context, buffer, sizeof(buffer), &copy_len, false)) {
        buffer[0] = '\0';
    }
    fprintf(stderr, "TEXT: ***%s***\r\n", buffer);
@@ -196,7 +197,7 @@
 */
scpi_result_t My_CoreTstQ(scpi_t * context) {
    SCPI_ResultInt(context, 0);
    SCPI_ResultInt32(context, 0);
    return SCPI_RES_OK;
}