You've already forked TEF6686_ESP32
Update code to be compatible with board manager v3.2.0
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include <ESP8266WebServer.h>
|
||||
#else
|
||||
#include <WiFi.h>
|
||||
#include <FS.h>
|
||||
using fs::FS;
|
||||
#include <WebServer.h>
|
||||
#endif
|
||||
#include <DNSServer.h>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user