Fix force publication debug output
This commit is contained in:
parent
ac81705a29
commit
c96ab157c1
@ -129,8 +129,10 @@ void publish (Sensor &sensor){
|
||||
}
|
||||
|
||||
// force an update if the number of samples without update is exceeded
|
||||
Serial.println(" * Forcing publication if sensor value is plausible");
|
||||
force = sensor.lastUpdate >= FORCE_PERIOD;
|
||||
if (force) {
|
||||
Serial.println(" * Forcing publication if sensor value is plausible");
|
||||
}
|
||||
|
||||
// update the sample counter, will be reset if sample is published
|
||||
sensor.lastUpdate += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user