Some more

This commit is contained in:
Dmitry Borisenko
2020-12-09 04:35:39 +03:00
parent 5c774c29bd
commit 253a9a5ae5
4 changed files with 20 additions and 4 deletions

View File

@@ -61,13 +61,17 @@ void countDown() {
void countDownExecute() {
String key = sCmd.order();
String countDownPeriod = sCmd.next();
String value = sCmd.next();
if (!isDigitStr(value)) { //если значение - текст
value = getValue(value);
}
int number = getKeyNum(key, countDown_KeyList);
if (myCountDown != nullptr) {
if (number != -1) {
myCountDown->at(number).execute(countDownPeriod.toInt());
myCountDown->at(number).execute(value.toInt());
}
}
}