1
0
Fork 0
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:
Larry (TBS) 2016-01-12 13:30:55 +08:00
parent 56098a63ca
commit 6f3d576802
6 changed files with 51 additions and 23 deletions

View file

@ -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();
}
}