Use common NRF52 begin() and deduplicate() startup reason init

Use a common begin() method that can be called from derived classes
to contain the shared initialization code.

Signed-off-by: Frieder Schrempf <frieder@fris.de>
This commit is contained in:
Frieder Schrempf committed 2025-12-17 10:26:57 +01:00
1 parent 2f79f3b03d
commit b9958e1c99
41 files changed
+26 -128

No files matched your search

+1 -2
View File
@@ -5,8 +5,7 @@
#include <bluefruit.h>
void T1000eBoard::begin() {
// for future use, sub-classes SHOULD call this from their begin()
startup_reason = BD_STARTUP_NORMAL;
NRF52Board::begin();
btn_prev_state = HIGH;
// Enable DC/DC converter for improved power efficiency