Skip to content

Commit

Permalink
a fix against regression of Actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Dec 9, 2024
1 parent 1588009 commit 9b45d1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ static void check_dfu_mode(void) {
bool dfu_start = _ota_dfu || serial_only_dfu || uf2_dfu ||
(((*dbl_reset_mem) == DFU_DBL_RESET_MAGIC) && reason_reset_pin);

#if defined(_LILYGO_TECHO_H)
if ((NRF_POWER->RESETREAS & POWER_RESETREAS_VBUS_Msk) && dfu_skip) {
NRF_POWER->RESETREAS |= POWER_RESETREAS_VBUS_Msk;
NRF_POWER->SYSTEMOFF = 1;
}
#endif /* _LILYGO_TECHO_H */

// Clear GPREGRET if it is our values
if (dfu_start || dfu_skip) NRF_POWER->GPREGRET = 0;
Expand Down

0 comments on commit 9b45d1a

Please sign in to comment.