Skip to content

NRF52Board - ShutdownPeripherals() housekeeping#2987

Merged
fdlamotte merged 1 commit into
meshcore-dev:devfrom
entr0p1:fix/nrf52-shutdownperipherals
Jul 20, 2026
Merged

NRF52Board - ShutdownPeripherals() housekeeping#2987
fdlamotte merged 1 commit into
meshcore-dev:devfrom
entr0p1:fix/nrf52-shutdownperipherals

Conversation

@entr0p1

@entr0p1 entr0p1 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Improvements:

  • Add condition to only turn off display if on (avoids wedging the shutdown on some displays)
  • Reset LoRa radio before calling radio_driver.powerOff() to ensure it is in a known good state (and will accept the command)
  • Ensure SPI is started so LoRa radio commands can be sent (some shutdowns can happen before this)
  • Add gate for P_LORA_NSS pin defined before writing to the pin

@fdlamotte this is a precursor for the updated power management/boot lockout code. More to come.

Improvements:
- Add condition to only turn off display if on (avoids wedging the shutdown on some displays)
- Reset LoRa radio before calling radio_driver.powerOff() to ensure it is in a known good state (and will accept the command)
- Ensure SPI is started so LoRa radio commands can be sent (some shutdowns can happen before this)
- Add gate for P_LORA_NSS pin defined before writing to the pin
@fdlamotte
fdlamotte merged commit 427cd7c into meshcore-dev:dev Jul 20, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants