Jan Breuer
2012-12-04 f0f8202f77a42f470f767692b22f0ad0254c038f
test-parser.c
@@ -61,7 +61,7 @@
    return SCPI_RES_OK;
}
static scpi_command_t scpi_commands[] = {
static const scpi_command_t scpi_commands[] = {
    /* IEEE Mandated Commands (SCPI std V1999.0 4.1.1) */
    { .pattern = "*CLS", .callback = SCPI_CoreCls,},
    { .pattern = "*ESE", .callback = SCPI_CoreEse,},
@@ -152,6 +152,8 @@
    },
    .interface = &scpi_interface,
    .registers = scpi_regs,
    .units = scpi_units_def,
    .special_numbers = scpi_special_numbers_def,
};
/*
@@ -194,7 +196,7 @@
    TEST_SCPI_INPUT("meas:volt:dc? 0.00001\r\n");
    //printf("%.*s %s\r\n",  3, "asdadasdasdasdas", SCPI_RES_ERR"b");
    //printf("%.*s %s\r\n",  3, "asdadasdasdasdas", "b");
    // interactive demo
    //char smbuffer[10];
    //while (1) {