Przeglądaj źródła

fix: 让c2能正确编译过去

Wendal Chen 3 lat temu
rodzic
commit
ed5f884a4c

+ 1 - 0
luatos/components/luat/port/luat_base_idf5.c

@@ -22,6 +22,7 @@ void lv_split_jpeg_init(void);
 #undef LUAT_USE_FONTS
 #undef LUAT_USE_GTFONT
 #undef LUAT_USE_RSA
+#undef LUAT_USE_NETWORK
 #endif
 
 LUAMOD_API int luaopen_nimble( lua_State *L );

+ 1 - 1
luatos/components/luat/port/luat_mcu_idf5.c

@@ -63,7 +63,7 @@ void luat_mcu_set_clk_source(uint8_t source_main, uint8_t source_32k, uint32_t d
 void luat_mcu_us_timer_init() {
         /* Select and initialize basic parameters of the timer */
     const gptimer_config_t config = {
-        #if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32C2)
+        #if defined(CONFIG_IDF_TARGET_ESP32)
         .clk_src = GPTIMER_CLK_SRC_APB,
         #else
         .clk_src = GPTIMER_CLK_SRC_XTAL,