fix: revert and fix logs & spacemouse

Check where deactivated in #3208
This commit is contained in:
raphaelcoeffic
2023-02-18 18:59:27 +01:00
parent fef6782f5e
commit 426a6e965f
2 changed files with 7 additions and 4 deletions
+5 -4
View File
@@ -42,10 +42,11 @@ static StaticTimer_t loggingTimerBuffer;
static void loggingTimerCb(TimerHandle_t xTimer) static void loggingTimerCb(TimerHandle_t xTimer)
{ {
(void)xTimer; (void)xTimer;
if (mixerTaskRunning()) {
DEBUG_TIMER_START(debugTimerLoggingWakeup); DEBUG_TIMER_START(debugTimerLoggingWakeup);
logsWrite(); logsWrite();
DEBUG_TIMER_STOP(debugTimerLoggingWakeup); DEBUG_TIMER_STOP(debugTimerLoggingWakeup);
}
} }
void loggingTimerStart() void loggingTimerStart()
+2
View File
@@ -63,10 +63,12 @@ static StaticTimer_t spacemouseTimerBuffer;
static void spacemouseTimerCb(TimerHandle_t xTimer) static void spacemouseTimerCb(TimerHandle_t xTimer)
{ {
if (mixerTaskRunning()) {
DEBUG_TIMER_START(debugTimerSpacemouseWakeup); DEBUG_TIMER_START(debugTimerSpacemouseWakeup);
spacemousePoll(); spacemousePoll();
spacemouseWakeup(); spacemouseWakeup();
DEBUG_TIMER_STOP(debugTimerSpacemouseWakeup); DEBUG_TIMER_STOP(debugTimerSpacemouseWakeup);
}
} }
void spacemouseStart() void spacemouseStart()