Skip to content

Commit e4c4f37

Browse files
committed
fix nrf build
1 parent 87afe71 commit e4c4f37

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/main.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ void setup() {
133133
}
134134
// Set only by the ESP32 wake-cause check below; NRF has no deep-sleep wake path.
135135
bool is_deep_sleep_wake = false;
136+
#ifdef TARGET_ESP32
136137
bool woke_by_button = false;
138+
#endif
137139
// Decode why we booted, on BOTH targets. On nRF this also reads the retained
138140
// breadcrumb, so a watchdog reset can name the panel phase that wedged. Must
139141
// run after od_log_init() (above) or the line is emitted into a dark port, and
@@ -272,9 +274,11 @@ void setup() {
272274
updatemsdata();
273275
if (is_deep_sleep_wake) { od_log_info("[wake] >> initButtons"); od_log_flush(); }
274276
initButtons();
277+
#if defined(TARGET_ESP32)
275278
if (woke_by_button) {
276279
buttonWakeDeliverSyntheticClick();
277280
}
281+
#endif
278282
if (is_deep_sleep_wake) { od_log_info("[wake] >> initTouchInput"); od_log_flush(); }
279283
initTouchInput();
280284
#ifdef TARGET_ESP32

0 commit comments

Comments
 (0)