From 331de988f7036d26154e889605158ebe9e488027 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 29 Aug 2022 21:59:49 +0200 Subject: [PATCH] TM: Avoid an useless float promotion --- Firmware/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;