Skip to content

Commit 63d37f3

Browse files
committed
more experiments
* reduce timeout to 90 seconds * show error message when mounting FS failed
1 parent 558d3de commit 63d37f3

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/wokwi-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,18 @@ jobs:
193193
# Export the token so it's available to child processes
194194
export WOKWI_CLI_TOKEN
195195
196-
# Start simulator in background with a 180 second timeout
196+
# Start simulator in background with a 90 second timeout
197197
# Wokwi CLI outputs to stderr, serial output goes to stdout
198-
WOKWI_TIMEOUT=300 ./run-simulator.sh >logs/serial.log 2>&1 &
198+
## WOKWI_TIMEOUT=300 ./run-simulator.sh >logs/serial.log 2>&1 &
199+
WOKWI_TIMEOUT=90 ./run-simulator.sh >logs/serial.log 2>&1 &
199200
WOKWI_PID=$!
200201
echo "WOKWI_PID=$WOKWI_PID" >> $GITHUB_ENV
201202
echo "Started Wokwi simulator with PID $WOKWI_PID"
202203
203204
# Wait for simulator to start and web server to be ready
204205
echo "Waiting for WLED web server to be ready..."
205-
max_wait=240
206+
#max_wait=240
207+
max_wait=30
206208
elapsed=0
207209
while [ $elapsed -lt $max_wait ]; do
208210
if curl -s -f http://localhost:9080 > /dev/null 2>&1; then

wled00/wled.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ void WLED::setup()
733733
fsinit = WLED_FS.begin();
734734
#endif
735735
if (!fsinit) {
736-
USER_PRINTLN(F("Mount FS failed!")); // WLEDMM
736+
USER_PRINT(F("Mount FS failed!")); // WLEDMM
737+
USER_PRINTF(" errno=%d (%s)\n", errno, strerror(errno));
737738
errorFlag = ERR_FS_BEGIN;
738739
} else {
739740
USER_PRINTLN(F("Mount FS succeeded.")); // WLEDMM
@@ -1255,6 +1256,7 @@ void WLED::initInterfaces()
12551256
MDNS.addServiceTxt("wled", "tcp", "mac", escapedMac.c_str());
12561257
}
12571258
server.begin();
1259+
DEBUG_PRINTLN("Web Server Started (sta mode)");
12581260

12591261
if (udpPort > 0 && udpPort != ntpLocalPort) {
12601262
udpConnected = notifierUdp.begin(udpPort);

0 commit comments

Comments
 (0)