소스 검색

Add tIdleStart variable for time-critical tasks

Anatoli Arkhipenko 4 달 전
부모
커밋
eec43a936e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/TaskScheduler.h

+ 2 - 0
src/TaskScheduler.h

@@ -1363,7 +1363,9 @@ bool Scheduler::execute() {
 #ifdef _TASK_SLEEP_ON_IDLE_RUN
     unsigned long tFinish;
     unsigned long tStart;
+#ifdef _TASK_TIMECRITICAL
     unsigned long tIdleStart = 0;
+#endif  // _TASK_TIMECRITICAL
 #endif  // _TASK_SLEEP_ON_IDLE_RUN