From 9b45d1a0ad19d36864f8b6b50966198ca3510c2f Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Mon, 9 Dec 2024 13:53:17 +0300 Subject: [PATCH] a fix against regression of Actions build --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index fa836bed..9813d0f3 100644 --- a/src/main.c +++ b/src/main.c @@ -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;