From faf52ba943a1fab8d6b98e42e75c658343a3f5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Kr=C3=BCger?= Date: Thu, 14 Dec 2023 20:43:39 +0100 Subject: [PATCH] Update README.md changed cast style from c++ to c --- ports/espressif/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/espressif/README.md b/ports/espressif/README.md index 28c19e2d..076ca469 100644 --- a/ports/espressif/README.md +++ b/ports/espressif/README.md @@ -76,8 +76,7 @@ There are a few ways to enter UF2 mode: // call esp_reset_reason() is required for idf.py to properly links esp_reset_reason_set_hint() (void) esp_reset_reason(); - esp_reset_reason_set_hint( - static_cast(APP_REQUEST_UF2_RESET_HINT)); + esp_reset_reason_set_hint((esp_reset_reason_t)APP_REQUEST_UF2_RESET_HINT); esp_restart(); } ```