1 parent 817766a commit 332ea88Copy full SHA for 332ea88
1 file changed
ports/nrf/supervisor/port.c
@@ -58,7 +58,9 @@ safe_mode_t port_init(void) {
58
nrfx_power_pofwarn_config_t power_failure_config;
59
power_failure_config.handler = power_warning_handler;
60
power_failure_config.thr = NRF_POWER_POFTHR_V27;
61
+ #if NRF_POWER_HAS_VDDH
62
power_failure_config.thrvddh = NRF_POWER_POFTHRVDDH_V27;
63
+ #endif
64
nrfx_power_pof_init(&power_failure_config);
65
nrfx_power_pof_enable(&power_failure_config);
66
0 commit comments