mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
- Fix and add BST task into scheduler, with fixed PID reading 0s problem.
This commit is contained in:
parent
56098a63ca
commit
6f3d576802
6 changed files with 51 additions and 23 deletions
|
@ -588,14 +588,12 @@ int main(void) {
|
|||
setTaskEnabled(TASK_LEDSTRIP, feature(FEATURE_LED_STRIP));
|
||||
#endif
|
||||
#ifdef USE_BST
|
||||
setTaskEnabled(TASK_BST_PROCESS, true);
|
||||
setTaskEnabled(TASK_BST_READ_WRITE, true);
|
||||
setTaskEnabled(TASK_BST_MASTER_PROCESS, true);
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
scheduler();
|
||||
#ifdef USE_BST
|
||||
bstMasterWriteLoop();
|
||||
#endif
|
||||
processLoopback();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue