variants: T1000E: Add OTA support
To reduce the number of different code paths, add OTA support for the remaining NRF52 boards. Signed-off-by: Frieder Schrempf <frieder@fris.de>
This commit is contained in:
@@ -4,11 +4,12 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <helpers/NRF52Board.h>
|
#include <helpers/NRF52Board.h>
|
||||||
|
|
||||||
class T1000eBoard : public NRF52BoardDCDC {
|
class T1000eBoard : public NRF52BoardDCDC, public NRF52BoardOTA {
|
||||||
protected:
|
protected:
|
||||||
uint8_t btn_prev_state;
|
uint8_t btn_prev_state;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
T1000eBoard() : NRF52BoardOTA("T1000E_OTA") {}
|
||||||
void begin();
|
void begin();
|
||||||
|
|
||||||
uint16_t getBattMilliVolts() override {
|
uint16_t getBattMilliVolts() override {
|
||||||
@@ -89,6 +90,4 @@ public:
|
|||||||
|
|
||||||
sd_power_system_off();
|
sd_power_system_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
// bool startOTAUpdate(const char* id, char reply[]) override;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user