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
+6
-2
@@ -165,6 +165,7 @@ build_flags = -std=c++17
|
||||
-I test/mocks
|
||||
test_build_src = yes
|
||||
test_ignore = test_kiss_modem
|
||||
test_rak3401_board_startup
|
||||
build_src_filter =
|
||||
-<*>
|
||||
+<../src/Utils.cpp>
|
||||
@@ -174,10 +175,13 @@ lib_deps =
|
||||
google/googletest @ 1.17.0
|
||||
|
||||
[env:native_rak3401_onboard_radio]
|
||||
; Header-only tests without unrelated production sources; also included in env:native CI.
|
||||
; Board startup needs isolated GPIO and power-management mocks.
|
||||
extends = env:native
|
||||
test_build_src = no
|
||||
test_filter = test_rak3401_onboard_radio
|
||||
test_filter = test_rak3401_*
|
||||
test_ignore =
|
||||
build_flags = -I test/test_rak3401_board_startup/mocks
|
||||
${env:native.build_flags}
|
||||
|
||||
[env:native_kiss_modem]
|
||||
platform = native
|
||||
|
||||
Reference in new issue
Block a user