From d658a49e04bbaadb50d815755a5d1b26316dfeb0 Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 7 Apr 2018 17:53:56 -0300 Subject: [PATCH] fix bugs --- keywords.txt | 1 + src/Vrekrer_scpi_parser.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keywords.txt b/keywords.txt index 54ca055..c892a73 100644 --- a/keywords.txt +++ b/keywords.txt @@ -16,3 +16,4 @@ SCPI_Parser KEYWORD1 SCPI_Parser RegisterCommand KEYWORD2 Execute KEYWORD2 +SetCommandTreeBase KEYWORD2 diff --git a/src/Vrekrer_scpi_parser.cpp b/src/Vrekrer_scpi_parser.cpp index cbd99ce..befbc4d 100644 --- a/src/Vrekrer_scpi_parser.cpp +++ b/src/Vrekrer_scpi_parser.cpp @@ -160,7 +160,7 @@ String SCPI_Parser::GetCommandCode(SCPI_Commands commands) { } for (int j = 0; j < tokens_size_; j++) { String short_token = tokens_[j]; - for (int t = 0; i < short_token.length(); t++) + for (int t = 0; t < short_token.length(); t++) if (isLowerCase(short_token.charAt(t))) { short_token.remove(t); break; @@ -193,7 +193,6 @@ void SCPI_Parser::RegisterCommand(String command, SCPI_caller_t caller) { } String SCPI_Parser::Execute_(String message) { - Serial.println(String("Execute : ") + message); SCPI_Commands commands(message); SCPI_Parameters parameters(message);