TM: Avoid an useless float promotion
This commit is contained in:
parent
66b97683bb
commit
331de988f7
1 changed files with 1 additions and 1 deletions
|
@ -2485,7 +2485,7 @@ void log_isr()
|
||||||
if(!log_buf.enabled) return;
|
if(!log_buf.enabled) return;
|
||||||
|
|
||||||
uint32_t stamp = _millis();
|
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.stamp = stamp;
|
||||||
|
|
||||||
++log_buf.entry.counter;
|
++log_buf.entry.counter;
|
||||||
|
|
Loading…
Reference in a new issue