update for usermessages
wled.h: - Don't use Serial directly -S2 as S2 serial driver is buggy. - added USER_FLUSH macro wled.cpp - replace fluh with FLUSH - print ArduionoOTA info (if enabled) wled_server.cpp: - added userlog info after file upload. pinn_manager: - don't show "(default)" is the PIN is actually assigned to HW drivers - bugfix for getPinOwner()
This commit is contained in:
@@ -52,6 +52,8 @@ void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t
|
||||
}
|
||||
if (final) {
|
||||
request->_tempFile.close();
|
||||
USER_PRINT(F("File uploaded: ")); // WLEDMM
|
||||
USER_PRINTLN(filename); // WLEDMM
|
||||
if (filename.equalsIgnoreCase("/cfg.json") || filename.equalsIgnoreCase("cfg.json")) { // WLEDMM
|
||||
request->send(200, "text/plain", F("Configuration restore successful.\nRebooting..."));
|
||||
doReboot = true;
|
||||
|
||||
Reference in New Issue
Block a user