Procházet zdrojové kódy

Merge branch 'bugfix/rtos_systick_cycle_time_error_dfs_v4.3' into 'release/v4.3'

backport v4.3: fix RTOS SysTick cycle time error caused by DFS

See merge request espressif/esp-idf!14494
Ivan Grokhotkov před 4 roky
rodič
revize
7dc2e5e545
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      components/esp_pm/pm_impl.c

+ 1 - 1
components/esp_pm/pm_impl.c

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