Skip to content

Commit 2116a7b

Browse files
authored
Merge pull request #5308 from TD-er/feature/2025_april_RC1
[Build] 2025 April Release Candidate
2 parents 4e000f7 + ac6c789 commit 2116a7b

35 files changed

+202
-11
lines changed

docs/source/Reference/SystemVariable.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ The conversion always outputs a string, but not all of these can be converted ba
362362
* - Secs to dhms: ``%c_s2dhms%(100000)``
363363
- Secs to dhms: ``1d03:46:40``
364364
- Seconds to days/hours/minutes/seconds notation
365+
* - Random(L,H): ``%c_random%(0, 1)``
366+
- Random(L,H): ``0.123``
367+
- Generate random number in the given range L ... H (Added: 2025/04/29)
365368
* - To HEX: ``%c_2hex%(100000)``
366369
- To HEX: ``186A0``
367370
- Convert integer value to HEX notation. (Added: 2020/10/07)

platformio_core_defs.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ lib_extra_dirs =
198198
; ESP_IDF 5.3.1
199199
[core_esp32_IDF5_3_2__3_1_0_LittleFS]
200200
platform = https://github.com/Jason2866/platform-espressif32.git#Arduino/IDF54
201-
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/3523/framework-arduinoespressif32-all-release_v5.4-2abf0b9a.zip
201+
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/3538/framework-arduinoespressif32-all-release_v5.4-8f5ad6d7.zip
202202
build_flags = -DESP32_STAGE
203203
-DESP_IDF_VERSION_MAJOR=5
204204
-DLIBRARIES_NO_LOG=1

platformio_esp32s3_envs.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ board = esp32s3cdc-qio_qspi
6060
lib_ignore = ${esp32s3_common.lib_ignore}
6161
${no_ir.lib_ignore}
6262

63+
[env:normal_ESP32s3_4M316k_LittleFS_CDC_ETH]
64+
extends = esp32s3_common_LittleFS
65+
board = esp32s3cdc-qio_qspi
66+
lib_ignore = ${esp32s3_common_LittleFS.lib_ignore}
67+
${no_ir.lib_ignore}
68+
build_flags = ${esp32s3_common_LittleFS.build_flags}
69+
-DFEATURE_ARDUINO_OTA=1
70+
-DFEATURE_SD=1
71+
-DFEATURE_ETHERNET=1
6372

6473
[env:collection_A_ESP32s3_4M316k_CDC]
6574
extends = esp32s3_common

src/src/Commands/GPIO.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ bool gpio_monitor_helper(int port, struct EventStruct *event, const char *Line)
100100
globalMapPortStatus[key].state = state;
101101

102102
if (state == -1) { globalMapPortStatus[key].mode = PIN_MODE_OFFLINE; }
103-
103+
#ifndef BUILD_MINIMAL_OTA
104104
if (loglevelActiveFor(LOG_LEVEL_INFO)) {
105105
addLog(LOG_LEVEL_INFO, concat(
106106
logPrefix,
107107
strformat(F(" port #%d: added to monitor list."), port)));
108108
}
109+
#endif
109110
String dummy;
110111
SendStatusOnlyIfNeeded(event, SEARCH_PIN_STATE, key, dummy, 0);
111112

@@ -147,11 +148,13 @@ bool gpio_unmonitor_helper(int port, struct EventStruct *event, const char *Line
147148
SendStatusOnlyIfNeeded(event, SEARCH_PIN_STATE, key, dummy, 0);
148149

149150
removeMonitorFromPort(key);
151+
#ifndef BUILD_MINIMAL_OTA
150152
if (loglevelActiveFor(LOG_LEVEL_INFO)) {
151153
addLog(LOG_LEVEL_INFO, concat(
152154
logPrefix,
153155
strformat(F(" port #%d: removed from monitor list."), port)));
154156
}
157+
#endif
155158

156159
return true;
157160
} else {
@@ -414,7 +417,9 @@ const __FlashStringHelper * Command_GPIO_RTTTL(struct EventStruct *event, const
414417
return return_command_success_flashstr();
415418
}
416419
#else // if FEATURE_RTTTL
420+
#ifndef BUILD_MINIMAL_OTA
417421
addLog(LOG_LEVEL_ERROR, F("RTTTL: command not included in build"));
422+
#endif
418423
#endif // if FEATURE_RTTTL
419424
return return_command_failed_flashstr();
420425
}

src/src/Commands/Servo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ const __FlashStringHelper * Command_Servo(struct EventStruct *event, const char
8989
return return_command_success_flashstr();
9090
}
9191
#else // if FEATURE_SERVO
92+
#ifndef BUILD_MINIMAL_OTA
9293
addLog(LOG_LEVEL_ERROR, F("SERVO : command not included in build"));
94+
#endif
9395
#endif // FEATURE_SERVO
9496
return return_command_failed_flashstr();
9597
}

src/src/CustomBuild/define_plugin_sets.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ To create/register a plugin, you have to :
4242
#ifndef WEBSERVER_I2C_SCANNER
4343
#define WEBSERVER_I2C_SCANNER
4444
#endif
45+
#ifndef WEBSERVER_CSVVAL
46+
#define WEBSERVER_CSVVAL
47+
#endif
4548
#ifndef WEBSERVER_FAVICON
4649
#define WEBSERVER_FAVICON
4750
#endif
@@ -511,7 +514,7 @@ To create/register a plugin, you have to :
511514
#define USES_P001 // switch
512515
#endif
513516
#ifndef USES_P026
514-
#define USES_P026 // SysInfo
517+
// #define USES_P026 // SysInfo
515518
#endif
516519
#ifndef USES_P033
517520
#define USES_P033 // Dummy
@@ -553,6 +556,12 @@ To create/register a plugin, you have to :
553556
#ifdef WEBSERVER_I2C_SCANNER
554557
#undef WEBSERVER_I2C_SCANNER
555558
#endif
559+
#ifdef WEBSERVER_CSVVAL
560+
#undef WEBSERVER_CSVVAL
561+
#endif
562+
#ifdef WEBSERVER_METRICS
563+
#undef WEBSERVER_METRICS
564+
#endif
556565
#ifdef WEBSERVER_FAVICON
557566
#undef WEBSERVER_FAVICON
558567
#endif

src/src/DataStructs/SecurityStruct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ void SecurityStruct::clearWiFiCredentials() {
6363
ZERO_FILL(WifiKey);
6464
ZERO_FILL(WifiSSID2);
6565
ZERO_FILL(WifiKey2);
66+
#ifndef BUILD_MINIMAL_OTA
6667
addLog(LOG_LEVEL_INFO, F("WiFi : Clear WiFi credentials from settings"));
68+
#endif
6769
}
6870

6971
void SecurityStruct::clearWiFiCredentials(SecurityStruct::WiFiCredentialsSlot slot) {

src/src/DataStructs/SystemTimerStruct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ systemTimerStruct::systemTimerStruct(int recurringCount, unsigned long msecFromN
1919
// Create a new timer which should be "scheduled" now to clear up any data
2020
_recurringCount = 0; // Do not reschedule
2121
_loopCount = 0; // Do not execute
22+
#ifndef BUILD_MINIMAL_OTA
2223
addLog(LOG_LEVEL_INFO, F("TIMER: disable timer"));
24+
#endif
2325
}
2426

2527
if (hasAlternateInterval()) {

src/src/ESPEasyCore/Controller.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ bool MQTTConnect(controllerIndex_t controller_idx)
179179
MakeControllerSettings(ControllerSettings); // -V522
180180

181181
if (!AllocatedControllerSettings()) {
182+
#ifndef BUILD_MINIMAL_OTA
182183
addLog(LOG_LEVEL_ERROR, F("MQTT : Cannot connect, out of RAM"));
184+
#endif
183185
return false;
184186
}
185187
LoadControllerSettings(controller_idx, *ControllerSettings);

src/src/ESPEasyCore/ESPEasyNetwork.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ void setNetworkMedium(NetworkMedium_t new_medium) {
6969
}
7070
statusLED(true);
7171
active_network_medium = new_medium;
72+
#ifndef BUILD_MINIMAL_OTA
7273
addLog(LOG_LEVEL_INFO, concat(F("Set Network mode: "), toString(active_network_medium)));
74+
#endif
7375
}
7476

7577

0 commit comments

Comments
 (0)