Macro guard VDDH inclusion.

This commit is contained in:
Scott Shawcroft 2018-12-06 16:38:14 -08:00
parent 817766acdc
commit 332ea8853f
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
1 changed files with 2 additions and 0 deletions

View File

@ -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);