TM: Avoid an useless float promotion

This commit is contained in:
Yuri D'Elia 2022-08-29 21:59:49 +02:00 committed by DRracer
parent 66b97683bb
commit 331de988f7

View File

@ -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;