We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e163a8 commit 9cb3877Copy full SHA for 9cb3877
TankAlarm-112025-Client-BluesOpta/TankAlarm-112025-Client-BluesOpta.ino
@@ -989,7 +989,7 @@ static void applyConfigUpdate(const JsonDocument &doc) {
989
gConfig.tanks[i].currentLoopChannel = t["loopChannel"].is<int>() ? t["loopChannel"].as<int>() : gConfig.tanks[i].currentLoopChannel;
990
gConfig.tanks[i].rpmPin = t["rpmPin"].is<int>() ? t["rpmPin"].as<int>() : gConfig.tanks[i].rpmPin;
991
if (t.containsKey("pulsesPerRev")) {
992
- gConfig.tanks[i].pulsesPerRevolution = t["pulsesPerRev"].as<uint8_t>();
+ gConfig.tanks[i].pulsesPerRevolution = max((uint8_t)1, t["pulsesPerRev"].as<uint8_t>());
993
}
994
// Support both old field name (heightInches) and new (maxValue)
995
if (t.containsKey("maxValue")) {
0 commit comments