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 行删除
-2
查看文件
@@ -6,12 +6,10 @@
class WioTrackerL1Board : public NRF52Board {
protected:
uint8_t startup_reason;
uint8_t btn_prev_state;
public:
void begin();
uint8_t getStartupReason() const override { return startup_reason; }
#if defined(P_LORA_TX_LED)
void onBeforeTransmit() override {