mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Fix cli unit test on some platform
This commit is contained in:
parent
81a3c53b1c
commit
887e06ca35
2 changed files with 4 additions and 7 deletions
|
@ -708,12 +708,11 @@ FAST_CODE void scheduler(void)
|
|||
}
|
||||
}
|
||||
|
||||
#if !defined(UNIT_TEST)
|
||||
DEBUG_SET(DEBUG_SCHEDULER, 2, micros() - schedulerStartTimeUs - taskExecutionTimeUs); // time spent in scheduler
|
||||
#endif
|
||||
|
||||
#if defined(UNIT_TEST)
|
||||
readSchedulerLocals(selectedTask, selectedTaskDynamicPriority);
|
||||
UNUSED(taskExecutionTimeUs);
|
||||
#else
|
||||
DEBUG_SET(DEBUG_SCHEDULER, 2, micros() - schedulerStartTimeUs - taskExecutionTimeUs); // time spent in scheduler
|
||||
#endif
|
||||
|
||||
scheduleCount++;
|
||||
|
|
|
@ -241,9 +241,7 @@ const box_t *findBoxByBoxId(boxId_e) { return &boxes[0]; }
|
|||
|
||||
int8_t unitTestDataArray[3];
|
||||
|
||||
void pgResetFn_unitTestData(int8_t *ptr) {
|
||||
ptr = &unitTestDataArray[0];
|
||||
}
|
||||
void pgResetFn_unitTestData(int8_t *) {}
|
||||
|
||||
uint32_t getBeeperOffMask(void) { return 0; }
|
||||
uint32_t getPreferredBeeperOffMask(void) { return 0; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue