diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index e742a17b..005dbfbd 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -2485,7 +2485,7 @@ void log_isr() if(!log_buf.enabled) return; uint32_t stamp = _millis(); - uint8_t delta_ms = stamp - log_buf.entry.stamp - (TEMP_MGR_INTV * 1000); + uint8_t delta_ms = stamp - log_buf.entry.stamp - (uint32_t)(TEMP_MGR_INTV * 1000); log_buf.entry.stamp = stamp; ++log_buf.entry.counter;