Add meter-reference calibration with saved ADC corrections, checked persistence and rollback. Preserve existing board coefficients and nRF52 voltage policy, and merge the Mini Repeater feature gates. Validation: 69 focused tests, hosted documentation checks, and four firmware builds passed. Mini Repeater retains calibration and its existing filesystem with 376 flash bytes free; earlier Mini Sensor size failures remain documented.
29 lines
718 B
C++
29 lines
718 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <MeshCore.h>
|
|
#include <helpers/NRF52Board.h>
|
|
#include "LoRaFEMControl.h"
|
|
|
|
class HeltecTowerV2Board : public NRF52BoardDCDC {
|
|
protected:
|
|
#ifdef NRF52_POWER_MANAGEMENT
|
|
void initiateShutdown(uint8_t reason) override;
|
|
#endif
|
|
|
|
public:
|
|
LoRaFEMControl loRaFEMControl;
|
|
|
|
HeltecTowerV2Board() : NRF52Board("TOWER_V2_OTA") {}
|
|
void begin();
|
|
void applyLedPolicy() override;
|
|
void onBeforeTransmit() override;
|
|
void onAfterTransmit() override;
|
|
bool supportsBatteryCalibration() const override { return true; }
|
|
|
|
uint16_t getBattMilliVolts() override;
|
|
const char* getManufacturerName() const override;
|
|
void powerOff() override;
|
|
void shutdownPeripherals() override;
|
|
};
|