Skip to content

Commit

Permalink
C2 is not defined until IDF version 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vickash committed Jul 6, 2023
1 parent 5f2beff commit 0dbb270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mrb_esp32_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ mrb_mruby_esp32_system_gem_init(mrb_state* mrb) {
define_const(CHIP_ESP32S3);
define_const(CHIP_ESP32C3);
define_const(CHIP_ESP32H2);
define_const(CHIP_ESP32C2);
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
define_const(CHIP_ESP32C2);
#endif
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
define_const(CHIP_ESP32C6);
define_const(CHIP_POSIX_LINUX);
Expand Down

0 comments on commit 0dbb270

Please sign in to comment.