1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Only enable PINIOBOX task when needed

Previously the task was always enabled and there's no reason for it to be running if there are no boxID associations.

Saves a few cycles by not running. But has a bigger effect on the scheduler by minimizing the number of active tasks when possible.
This commit is contained in:
Bruce Luckcuck 2020-04-09 19:40:18 -04:00
parent a2aa3f19f4
commit f688227db6
14 changed files with 40 additions and 8 deletions

View file

@ -655,4 +655,5 @@ void resetTryingToArm(void) {}
void setLedProfile(uint8_t profile) { UNUSED(profile); }
uint8_t getLedProfile(void) { return 0; }
void compassStartCalibration(void) {}
void pinioBoxTaskControl(void) {}
}