mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем поддержку отрицательных чисел в сценарии
This commit is contained in:
@@ -613,8 +613,14 @@ int IoTScenario::gettok() {
|
||||
return tok_identifier;
|
||||
}
|
||||
|
||||
String NumStr="";
|
||||
if (LastChar == '-') {
|
||||
LastChar = getLastChar();
|
||||
if (isdigit(LastChar)) NumStr = "-";
|
||||
else return '-';
|
||||
|
||||
}
|
||||
if (isdigit(LastChar)) { // Число: [0-9.]+
|
||||
String NumStr;
|
||||
do {
|
||||
NumStr += (char)LastChar;
|
||||
LastChar = getLastChar();
|
||||
|
||||
Reference in New Issue
Block a user