You've already forked TEF6686_ESP32
89.9 flash usage
This commit is contained in:
3
CMakeLists.txt
Normal file
3
CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.16.0)
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(TEF6686_ESP32)
|
||||||
9
extra_script.py
Normal file
9
extra_script.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Import("env")
|
||||||
|
|
||||||
|
# Apply C++-only flags
|
||||||
|
env.Append(
|
||||||
|
CXXFLAGS=[
|
||||||
|
"-fno-exceptions",
|
||||||
|
"-fno-rtti"
|
||||||
|
]
|
||||||
|
)
|
||||||
@@ -16,4 +16,17 @@ board_build.partitions = huge_app.csv
|
|||||||
build_flags =
|
build_flags =
|
||||||
-Wall
|
-Wall
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wno-unknown-pragmas
|
-Wno-unknown-pragmas
|
||||||
|
-Os
|
||||||
|
-DCORE_DEBUG_LEVEL=0
|
||||||
|
-DBOARD_HAS_PSRAM=0
|
||||||
|
-ffunction-sections
|
||||||
|
-fdata-sections
|
||||||
|
-Wl,--gc-sections
|
||||||
|
-DARDUINO_LOOP_STACK_SIZE=4096
|
||||||
|
|
||||||
|
build_unflags =
|
||||||
|
-fexceptions
|
||||||
|
-frtti
|
||||||
|
|
||||||
|
extra_scripts = pre:extra_script.py
|
||||||
6
src/CMakeLists.txt
Normal file
6
src/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# This file was automatically generated for projects
|
||||||
|
# without default 'CMakeLists.txt' file.
|
||||||
|
|
||||||
|
FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*)
|
||||||
|
|
||||||
|
idf_component_register(SRCS ${app_sources})
|
||||||
@@ -320,7 +320,6 @@ bool isDST(time_t t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (month > 3 && month < 10) return true;
|
if (month > 3 && month < 10) return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -390,9 +389,7 @@ void sendUDPlog() {
|
|||||||
|
|
||||||
String AF = "";
|
String AF = "";
|
||||||
if (radio.rds.hasAF && radio.af_counter > 0) {
|
if (radio.rds.hasAF && radio.af_counter > 0) {
|
||||||
for (byte i = 0; i < radio.af_counter; i++) {
|
for (byte i = 0; i < radio.af_counter; i++) AF += String(radio.af[i].frequency / 100) + "." + String((radio.af[i].frequency % 100) / 10) + (i == radio.af_counter - 1 ? "" : ";");
|
||||||
AF += String(radio.af[i].frequency / 100) + "." + String((radio.af[i].frequency % 100) / 10) + (i == radio.af_counter - 1 ? "" : ";");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String EON = "";
|
String EON = "";
|
||||||
@@ -419,24 +416,12 @@ void sendUDPlog() {
|
|||||||
if (radio.rds.hasRTplus) RTPLUS += radio.rds.RTContent1 + ";" + radio.rds.RTContent2;
|
if (radio.rds.hasRTplus) RTPLUS += radio.rds.RTContent1 + ";" + radio.rds.RTContent2;
|
||||||
|
|
||||||
// Construct the data row to send via UDP
|
// Construct the data row to send via UDP
|
||||||
String row = CHIP + "," +
|
String row = CHIP + "," + VERSION + "," + String(scandxmode) + "," +
|
||||||
VERSION + "," +
|
currentDateTime + "," + frequencyFormatted + "," + String(radio.rds.picode).substring(0, 4) + "," +
|
||||||
String(scandxmode) + "," +
|
signal + "," + String(radio.getStereoStatus()) + "," + String(radio.rds.hasTA) + "," +
|
||||||
currentDateTime + "," +
|
String(radio.rds.TP) + "," + String(radio.rds.hasTMC) + "," + String(radio.rds.PTY) + "," +
|
||||||
frequencyFormatted + "," +
|
ECC + "," + stationName + "," + radioTextModified + "," +
|
||||||
String(radio.rds.picode).substring(0, 4) + "," +
|
AF + "," + EON + "," + RTPLUS + "\n";
|
||||||
signal + "," +
|
|
||||||
String(radio.getStereoStatus()) + "," +
|
|
||||||
String(radio.rds.hasTA) + "," +
|
|
||||||
String(radio.rds.TP) + "," +
|
|
||||||
String(radio.rds.hasTMC) + "," +
|
|
||||||
String(radio.rds.PTY) + "," +
|
|
||||||
ECC + "," +
|
|
||||||
stationName + "," +
|
|
||||||
radioTextModified + "," +
|
|
||||||
AF + "," +
|
|
||||||
EON + "," +
|
|
||||||
RTPLUS + "\n";
|
|
||||||
|
|
||||||
// Send the data via UDP if it's new
|
// Send the data via UDP if it's new
|
||||||
if (UDPlogold != row) {
|
if (UDPlogold != row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user