Skip to content

Commit cfca72e

Browse files
committed
Correction to esp32-h4 supported version macro in sys.c
The ESP32-H2 was first introduced in ESP-IDF v5.1 but the macro for v5.1 builds excludes the H2, leaving it included for builds with previous versions (for example 4.3) where support is not included. Signed-off-by: Winford <winford@object.stream>
1 parent dfc3bf1 commit cfca72e

File tree

1 file changed

+2
-2
lines changed
  • src/platforms/esp32/components/avm_sys

1 file changed

+2
-2
lines changed

src/platforms/esp32/components/avm_sys/sys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ static const char *const esp32_c2_atom = "\x8" "esp32_c2";
8989
static const char *const esp32_c3_atom = "\x8" "esp32_c3";
9090
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
9191
static const char *const esp32_c6_atom = "\x8" "esp32_c6";
92-
#endif
9392
static const char *const esp32_h2_atom = "\x8" "esp32_h2";
9493
#endif
94+
#endif
9595
static const char *const emb_flash_atom = "\x9" "emb_flash";
9696
static const char *const bgn_atom = "\x3" "bgn";
9797
static const char *const ble_atom = "\x3" "ble";
@@ -489,9 +489,9 @@ static term get_model(Context *ctx, esp_chip_model_t model)
489489
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
490490
case CHIP_ESP32C6:
491491
return globalcontext_make_atom(ctx->global, esp32_c6_atom);
492-
#endif
493492
case CHIP_ESP32H2:
494493
return globalcontext_make_atom(ctx->global, esp32_h2_atom);
494+
#endif
495495
default:
496496
return UNDEFINED_ATOM;
497497
}

0 commit comments

Comments
 (0)