fix(rak3401): sleep onboard SX1262 before boot voltage check
Move the onboard radio probe into RAK3401Board::begin() so a low-voltage SYSTEMOFF at boot no longer leaves the RAK4631's onboard SX1262 in standby. Add board startup tests and run them in CI.
This commit is contained in:
1 parent
6dc7f2b047
commit
277cae93ac
9 files changed
+157
-6
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#include <Wire.h>
|
||||
|
||||
#include "RAK3401Board.h"
|
||||
#include "OnboardRadioSleep.h"
|
||||
|
||||
#ifdef NRF52_POWER_MANAGEMENT
|
||||
// Static configuration for power management
|
||||
@@ -30,6 +31,8 @@ void RAK3401Board::initiateShutdown(uint8_t reason) {
|
||||
|
||||
void RAK3401Board::begin() {
|
||||
NRF52BoardDCDC::begin();
|
||||
// Voltage protection can enter SYSTEMOFF before radio_init() is reached.
|
||||
rak3401::sleepOnboardRadio();
|
||||
pinMode(PIN_VBAT_READ, INPUT);
|
||||
#ifdef PIN_USER_BTN
|
||||
pinMode(PIN_USER_BTN, INPUT_PULLUP);
|
||||
|
||||
Reference in new issue
Block a user