Macro guard VDDH inclusion.
This commit is contained in:
parent
817766acdc
commit
332ea8853f
|
@ -58,7 +58,9 @@ safe_mode_t port_init(void) {
|
|||
nrfx_power_pofwarn_config_t power_failure_config;
|
||||
power_failure_config.handler = power_warning_handler;
|
||||
power_failure_config.thr = NRF_POWER_POFTHR_V27;
|
||||
#if NRF_POWER_HAS_VDDH
|
||||
power_failure_config.thrvddh = NRF_POWER_POFTHRVDDH_V27;
|
||||
#endif
|
||||
nrfx_power_pof_init(&power_failure_config);
|
||||
nrfx_power_pof_enable(&power_failure_config);
|
||||
|
||||
|
|
Loading…
Reference in New Issue