فهرست منبع

Merge branch 'bugfix/rtos_systick_cycle_time_error_dfs' into 'master'

fix RTOS SysTick cycle time error caused by DFS

See merge request espressif/esp-idf!14486
Ivan Grokhotkov 4 سال پیش
والد
کامیت
32d4829fed
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      components/esp_pm/pm_impl.c

+ 1 - 1
components/esp_pm/pm_impl.c

@@ -426,7 +426,7 @@ static void IRAM_ATTR on_freq_update(uint32_t old_ticks_per_us, uint32_t ticks_p
     }
 
 #if __XTENSA__
-#if XT_RTOS_TIMER_INT
+#ifdef XT_RTOS_TIMER_INT
     /* Calculate new tick divisor */
     _xt_tick_divisor = ticks_per_us * MHZ / XT_TICK_PER_SEC;
 #endif