Skip to content

Commit fe43d5a

Browse files
committed
fix(autoconfig): stop writing config if global auto off.
1 parent 544b78c commit fe43d5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Wippersnapper_V2.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,10 @@ void Wippersnapper_V2::connect() {
12951295
// Call the TL signal decoder to parse the incoming JSON data
12961296
callDecodeB2D();
12971297
#ifndef OFFLINE_MODE_WOKWI
1298-
WsV2._fileSystemV2->WriteFileConfig();
1298+
//TODO: Don't write the config file if unchanged versus current config
1299+
if (WsV2._global_auto_config) {
1300+
WsV2._fileSystemV2->WriteFileConfig();
1301+
}
12991302
#endif // OFFLINE_MODE_WOKWI used for CI test simulations, lacks TinyUSB
13001303
WS_DEBUG_PRINTLN("[APP] Hardware configured!");
13011304
// Blink status LED to green to indicate successful configuration

0 commit comments

Comments
 (0)