mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
refactor: increased the max value of dt for pid to 1800 sec
This commit is contained in:
@@ -1084,7 +1084,7 @@ bool jsonToSettings(const JsonVariantConst src, Settings& dst, bool safe = false
|
||||
if (!src["pid"]["dt"].isNull()) {
|
||||
unsigned short value = src["pid"]["dt"].as<unsigned short>();
|
||||
|
||||
if (value >= 30 && value <= 600 && value != dst.pid.dt) {
|
||||
if (value >= 30 && value <= 1800 && value != dst.pid.dt) {
|
||||
dst.pid.dt = value;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user