mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Some more
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user