From dea80bc7bae4566f646bf3673988f0064eb62196 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周三, 06 3月 2013 21:37:14 +0800 Subject: [PATCH] ADD LwIP example --- examples/common/scpi-def.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/common/scpi-def.c b/examples/common/scpi-def.c index 1908484..16711c3 100644 --- a/examples/common/scpi-def.c +++ b/examples/common/scpi-def.c @@ -47,16 +47,20 @@ // read first parameter if present if (SCPI_ParamNumber(context, ¶m1, false)) { - SCPI_NumberToStr(context, ¶m1, bf, 15); - fprintf(stderr, "\tP1=%s\r\n", bf); } // read second paraeter if present if (SCPI_ParamNumber(context, ¶m2, false)) { - SCPI_NumberToStr(context, ¶m2, bf, 15); - fprintf(stderr, "\tP2=%s\r\n", bf); } + + SCPI_NumberToStr(context, ¶m1, bf, 15); + fprintf(stderr, "\tP1=%s\r\n", bf); + + + SCPI_NumberToStr(context, ¶m2, bf, 15); + fprintf(stderr, "\tP2=%s\r\n", bf); + SCPI_ResultDouble(context, 0); return SCPI_RES_OK; -- Gitblit v1.9.1