From 827e7d6b70828c51664cfa68ace5029da3f1cf1c Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: ćšć, 07 11æ 2013 22:29:46 +0800 Subject: [PATCH] Update FreeRTOS-LwIP example with nown stack size --- libscpi/src/parser.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c index b4d018e..e333fc7 100644 --- a/libscpi/src/parser.c +++ b/libscpi/src/parser.c @@ -41,6 +41,7 @@ #include "scpi/parser.h" #include "utils.h" #include "scpi/error.h" +#include "scpi/constants.h" static size_t cmdTerminatorPos(const char * cmd, size_t len); @@ -285,6 +286,19 @@ * @param interface */ void SCPI_Init(scpi_t * context) { + if (context->idn[0] == NULL) { + context->idn[0] = SCPI_DEFAULT_1_MANUFACTURE; + } + if (context->idn[1] == NULL) { + context->idn[1] = SCPI_DEFAULT_2_MODEL; + } + if (context->idn[2] == NULL) { + context->idn[2] = SCPI_DEFAULT_3; + } + if (context->idn[3] == NULL) { + context->idn[3] = SCPI_DEFAULT_4_REVISION; + } + context->buffer.position = 0; SCPI_ErrorInit(context); } -- Gitblit v1.9.1