Update code to be compatible with board manager v3.2.0

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-08-27 16:16:35 +02:00
parent 0694726b8b
commit 89cb362d75
9 changed files with 63 additions and 62 deletions

View File

@@ -29,6 +29,8 @@
#include <ESP8266WebServer.h>
#else
#include <WiFi.h>
#include <FS.h>
using fs::FS;
#include <WebServer.h>
#endif
#include <DNSServer.h>

View File

@@ -119,7 +119,7 @@ void Communication() {
if (afscreen || advancedRDS) {
BuildDisplay();
SelectBand();
ScreensaverTimerReopen();
// ScreensaverTimerReopen();
}
if (tempfreq >= FREQ_LW_LOW_EDGE_MIN && tempfreq <= FREQ_LW_HIGH_EDGE_MAX) {

View File

@@ -138,7 +138,7 @@ extern void doBW();
extern void BuildDisplay();
extern void BuildAdvancedRDS();
extern void ModeButtonPress();
extern void ScreensaverTimerReopen();
//extern void ScreensaverTimerReopen();
extern void Seek(bool mode);
extern void doStereoToggle();
extern void MuteScreen(bool setting);

View File

@@ -1,7 +1,7 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#define VERSION "v2.20"
#define VERSION "v2.20.1"
#define ON 1
#define OFF 0

View File

@@ -186,17 +186,6 @@ void handleDownloadCSV() {
}
bool handleCreateNewLogbook() {
// Quick check if SPIFFS is mounted and accessible
if (!SPIFFS.exists("/")) { // "/" should always exist if mounted
// SPIFFS not accessible, try to format and remount
if (!SPIFFS.format()) {
return false; // format failed
}
if (!SPIFFS.begin()) {
return false; // remount failed
}
}
// Check if the file "logbook.csv" already exists
if (SPIFFS.exists("/logbook.csv")) {
// If it exists, delete the file

View File

@@ -4,6 +4,8 @@
#include <Arduino.h>
#include <TFT_eSPI.h>
#include <WiFi.h>
#include <FS.h>
using fs::FS;
#include <WebServer.h>
#include <SPIFFS.h>
#include "TEF6686.h"

View File

@@ -198,7 +198,7 @@ void doTouchEvent(uint16_t x, uint16_t y) {
leave = true;
BuildDisplay();
SelectBand();
ScreensaverTimerReopen(); // Switch to normal radio view
// ScreensaverTimerReopen(); // Switch to normal radio view
return;
} else if (x > 0 && x < 320 && y > 180 && y < 240) {
BuildAFScreen();

View File

@@ -35,7 +35,7 @@ extern int menuoption;
void doTouchEvent(uint16_t x, uint16_t y);
extern void ScreensaverTimerReopen();
//extern void ScreensaverTimerReopen();
extern void BuildDisplay();
extern void BuildBWSelector();
extern void SelectBand();