Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
changed cast style from c++ to c
  • Loading branch information
s-light authored Dec 14, 2023
1 parent 9519fad commit faf52ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ports/espressif/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<esp_reset_reason_t>(APP_REQUEST_UF2_RESET_HINT));
esp_reset_reason_set_hint((esp_reset_reason_t)APP_REQUEST_UF2_RESET_HINT);
esp_restart();
}
```
Expand Down

0 comments on commit faf52ba

Please sign in to comment.