Merge remote-tracking branch 'origin/keymindCascade' into keymindCascade
This commit is contained in:
commit
170c1761d0
21 files changed
+1658
-41
No files matched your search
@@ -1323,6 +1323,12 @@ public:
|
||||
bool handleHostCliSerialReply(const char* command, char* reply);
|
||||
#endif
|
||||
void loop();
|
||||
#if defined(OTA_BOOTLOADER_MIGRATION)
|
||||
bool prepareForOtaReboot() override {
|
||||
// Let the normal ACL save finish, including its failure backoff.
|
||||
return dirty_contacts_expiry == 0;
|
||||
}
|
||||
#endif
|
||||
bool canRecoverUsbLogging() const {
|
||||
return dirty_contacts_expiry == 0 && !hasOutbound() && !isAnyTempRadioActive()
|
||||
&& !hasPendingOtaApply() && !saved_radio_apply_pending
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#endif
|
||||
|
||||
#include "MyMesh.h"
|
||||
#if defined(OTA_BOOTLOADER_MIGRATION)
|
||||
#include <helpers/ota/BootloaderMigration.h>
|
||||
#endif
|
||||
#if defined(MESH_SOAK_DIAGNOSTICS)
|
||||
#include "../../tools/hil/S3SoakDiagnostics.h"
|
||||
#endif
|
||||
@@ -377,6 +380,9 @@ void setup() {
|
||||
mesh::hilStartupTrace("mesh_begin");
|
||||
the_mesh.begin(fs);
|
||||
mesh::hilStartupTrace("mesh_ready");
|
||||
#if defined(OTA_BOOTLOADER_MIGRATION)
|
||||
mesh::ota::bootloader_migration_begin(volatile_primary_fs ? nullptr : fs);
|
||||
#endif
|
||||
|
||||
mesh::hilStartupTrace("watchdog_begin");
|
||||
#if defined(NRF52_PLATFORM)
|
||||
|
||||
@@ -654,6 +654,12 @@ public:
|
||||
return mesh::wireless::WiFi;
|
||||
}
|
||||
void loop();
|
||||
#if defined(OTA_BOOTLOADER_MIGRATION)
|
||||
bool prepareForOtaReboot() override {
|
||||
// Let the normal ACL save finish, including its failure backoff.
|
||||
return dirty_contacts_expiry == 0;
|
||||
}
|
||||
#endif
|
||||
bool canRecoverUsbLogging() const {
|
||||
return dirty_contacts_expiry == 0 && !hasOutbound() && !isAnyTempRadioActive()
|
||||
&& !hasPendingOtaApply() && !saved_radio_apply_pending
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
#endif
|
||||
|
||||
#include "MyMesh.h"
|
||||
#if defined(OTA_BOOTLOADER_MIGRATION)
|
||||
#include <helpers/ota/BootloaderMigration.h>
|
||||
#endif
|
||||
|
||||
#if defined(ESP32_PLATFORM)
|
||||
#include <helpers/ESP32TrueRandom.h>
|
||||
@@ -253,6 +256,9 @@ void setup() {
|
||||
sensors.begin();
|
||||
|
||||
the_mesh.begin(fs);
|
||||
#if defined(OTA_BOOTLOADER_MIGRATION)
|
||||
mesh::ota::bootloader_migration_begin(volatile_primary_fs ? nullptr : fs);
|
||||
#endif
|
||||
|
||||
#if defined(NRF52_PLATFORM)
|
||||
mesh::loadUsbLoggingWatchdog(fs, !volatile_primary_fs,
|
||||
|
||||
Reference in new issue
Block a user