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>
이 커밋은 다음에 포함됨:
Frieder Schrempf
2025-12-17 10:26:57 +01:00
부모 87b0e432bb
커밋 93d1560d14
41개의 변경된 파일26개의 추가작업 그리고 128개의 파일을 삭제
+1 -2
파일 보기
@@ -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