mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-19 08:17:26 +00:00
Fix trunk warnings
This commit is contained in:
parent
fbd1e2b0f3
commit
65710a9299
@ -1,6 +1,6 @@
|
||||
#include <WiFiOTA.h>
|
||||
#include <Preferences.h>
|
||||
#include "WiFiOTA.h"
|
||||
#include "configuration.h"
|
||||
#include <Preferences.h>
|
||||
#include <esp_ota_ops.h>
|
||||
|
||||
namespace WiFiOTA
|
||||
@ -58,8 +58,7 @@ void saveConfig(meshtastic_Config_NetworkConfig *network)
|
||||
bool trySwitchToOTA()
|
||||
{
|
||||
esp_app_desc_t app_desc;
|
||||
const esp_partition_t *part = esp_partition_find_first(
|
||||
ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_OTA_1, NULL);
|
||||
const esp_partition_t *part = esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_OTA_1, NULL);
|
||||
if (!part)
|
||||
return false;
|
||||
if (ESP_ERROR_CHECK_WITHOUT_ABORT(esp_ota_get_partition_description(part, &app_desc)) != ESP_OK)
|
||||
@ -75,8 +74,7 @@ String getVersion()
|
||||
{
|
||||
String version;
|
||||
esp_app_desc_t app_desc;
|
||||
const esp_partition_t *part = esp_partition_find_first(
|
||||
ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_OTA_1, NULL);
|
||||
const esp_partition_t *part = esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_APP_OTA_1, NULL);
|
||||
if (!part)
|
||||
return version;
|
||||
if (ESP_ERROR_CHECK_WITHOUT_ABORT(esp_ota_get_partition_description(part, &app_desc)) != ESP_OK)
|
||||
@ -85,4 +83,4 @@ String getVersion()
|
||||
return version;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace WiFiOTA
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef WIFIOTA_H
|
||||
#define WIFIOTA_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "mesh-pb-constants.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
namespace WiFiOTA
|
||||
{
|
||||
@ -13,6 +13,6 @@ void recoverConfig(meshtastic_Config_NetworkConfig *network);
|
||||
void saveConfig(meshtastic_Config_NetworkConfig *network);
|
||||
bool trySwitchToOTA();
|
||||
String getVersion();
|
||||
}
|
||||
} // namespace WiFiOTA
|
||||
|
||||
#endif // WIFIOTA_H
|
||||
|
Loading…
Reference in New Issue
Block a user