Jan Breuer
2015-08-06 6e5e3e0e3fc450eaf53feee059824ad85c4f270d
libscpi/src/parser.c
@@ -44,7 +44,6 @@
#include "scpi/error.h"
#include "scpi/constants.h"
#include "scpi/utils.h"
#include "scpi/debug.h"
/**
 * Write data to SCPI output
@@ -130,7 +129,6 @@
    context->output_count = 0;
    context->input_count = 0;
    SCPI_DEBUG_COMMAND(context);
    /* if callback exists - call command callback */
    if (cmd->callback != NULL) {
        if ((cmd->callback(context) != SCPI_RES_OK) && !context->cmd_error) {
@@ -416,7 +414,7 @@
    SCPI_LongToStr(len, block_header + 2, 10, 10);
    header_len = strlen(block_header + 2);
    block_header[1] = header_len + '0';
    block_header[1] = (char)(header_len + '0');
    result += writeData(context, block_header, header_len + 2);
    result += writeData(context, data, len);
@@ -787,7 +785,7 @@
 * @param options specifications of choices numbers (patterns)
 * @param tag numerical representatio of choice
 * @param text result text
 * @return TRUE if succesfule, else false
 * @return TRUE if succesfule, else FALSE
 */
scpi_bool_t SCPI_ChoiceToName(const scpi_choice_def_t * options, int32_t tag, const char ** text) {
    int i;