TM: Avoid an useless float promotion
This commit is contained in:
parent
66b97683bb
commit
331de988f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user