1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Fixup after rebase

This commit is contained in:
Martin Budden 2016-10-09 17:44:29 +01:00
parent 0ccb7040f0
commit 3f5393e201
2 changed files with 9 additions and 201 deletions

View file

@ -247,8 +247,14 @@ void taskUpdateAttitude(uint32_t currentTime)
void taskHandleSerial(uint32_t currentTime)
{
UNUSED(currentTime);
handleSerial();
#ifdef USE_CLI
// in cli mode, all serial stuff goes to here. enter cli mode by sending #
if (cliMode) {
cliProcess();
return;
}
#endif
mspSerialProcess();
}
void taskUpdateBeeper(uint32_t currentTime)
@ -424,7 +430,7 @@ void taskUpdateOsd(uint32_t currentTime)
void fcTasksInit(void)
{
schedulerInit();
rescheduleTask(TASK_GYROPID, gyro.targetLooptime + LOOPTIME_SUSPEND_TIME); // Add a littlebit of extra time to reduce busy wait
rescheduleTask(TASK_GYROPID, gyro.targetLooptime);
setTaskEnabled(TASK_GYROPID, true);
if (sensors(SENSOR_ACC)) {