[avr] check state flags in main loop for all sensors
This commit is contained in:
parent
d870088415
commit
9fbbb99a88
|
@ -388,7 +388,7 @@ int main(void)
|
|||
spi_status &= ~SPI_NEW_CTRL_MSG;
|
||||
}
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
for (i = 0; i < MAX_SENSORS; i++) {
|
||||
if (state[i].flags & STATE_POWER_CALC) {
|
||||
calculate_power(&state[i]);
|
||||
state[i].flags &= ~STATE_POWER_CALC;
|
||||
|
|
Loading…
Reference in New Issue