debug print on early boot when OTA firmware is detected.

This commit is contained in:
Thomas Göttgens
2022-10-10 23:05:24 +02:00
parent f8982ddaf8
commit 4534d17d79
2 changed files with 9 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
#include "main.h"
#include "nimble/NimbleBluetooth.h"
#include "BleOta.h"
#include "mesh/http/WiFiAPClient.h"
#include "sleep.h"
@@ -63,6 +64,12 @@ void esp32Setup()
preferences.putUInt("rebootCounter", rebootCounter);
preferences.end();
DEBUG_MSG("Number of Device Reboots: %d\n", rebootCounter);
String BLEOTA=BleOta::getOtaAppVersion();
if (BLEOTA.isEmpty()) {
DEBUG_MSG("No OTA firmware available\n");
}else{
DEBUG_MSG("OTA firmware version %s\n", BLEOTA);
}
// enableModemSleep();