Jan Breuer
2015-10-04 7dca581454fb426dd8233a39475877dab9b3e1a6
libscpi/src/units.c
@@ -38,6 +38,7 @@
#include "scpi/parser.h"
#include "scpi/units.h"
#include "utils_private.h"
#include "scpi/utils.h"
#include "scpi/error.h"
#include "lexer_private.h"
@@ -233,6 +234,8 @@
            value->special = FALSE;
            result = TRUE;
            break;
        default:
            break;
    }
    switch(param.type) {
@@ -249,6 +252,8 @@
            break;
        case SCPI_TOKEN_OCTNUM:
            value->base = 8;
            break;
        default:
            break;
    }
@@ -319,7 +324,7 @@
        }
    }
    result = doubleToStr(value->value, str, len);
    result = SCPI_DoubleToStr(value->value, str, len);
    unit = translateUnitInverse(context->units, value->unit);