Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrekrer committed Apr 7, 2018
1 parent af0828d commit d658a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ SCPI_Parser KEYWORD1 SCPI_Parser

RegisterCommand KEYWORD2
Execute KEYWORD2
SetCommandTreeBase KEYWORD2
3 changes: 1 addition & 2 deletions src/Vrekrer_scpi_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit d658a49

Please sign in to comment.