FwUpdate phase 1: only in FW_OTA images, manifest layout 2, no downgrade over the mesh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c93f5d906d
commit
0b38eab008
7 files changed
+1107
-12
No files matched your search
@@ -100,7 +100,9 @@ void NodeMaintenance::begin(FILESYSTEM* fs, NodePrefs* prefs, CommonCLICallbacks
|
||||
|
||||
void NodeMaintenance::loop() {
|
||||
dfuTick();
|
||||
#ifdef FW_OTA
|
||||
_fw.loop();
|
||||
#endif
|
||||
switch (_silence.poll(millis(), radioActivity())) {
|
||||
case RadioSilenceWatchdog::KICK_RX:
|
||||
Serial.printf("radio silence: nothing received for %lu min, re-arming RX\n",
|
||||
@@ -249,7 +251,9 @@ bool NodeMaintenance::dfuCommand(uint32_t sender_timestamp, const char* command,
|
||||
|
||||
bool NodeMaintenance::handleCommand(uint32_t sender_timestamp, const char* command, char* reply) {
|
||||
if (dfuCommand(sender_timestamp, command, reply)) return true;
|
||||
#ifdef FW_OTA
|
||||
if (_fw.handleCommand(sender_timestamp, command, reply)) return true;
|
||||
#endif
|
||||
if (silenceCommand(command, reply)) return true;
|
||||
if (strcmp(command, "get boot") == 0) {
|
||||
#if defined(NRF52_PLATFORM)
|
||||
|
||||
Reference in new issue
Block a user