Skip to content

Commit

Permalink
🐛 Fix IOS 18 Safari webUI Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Oct 2, 2024
1 parent 0bab3bd commit 8490972
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
platform = [email protected]
framework = arduino
monitor_speed = 115200
custom_prog_version = 1.2.0
custom_prog_version = 1.2.1
build_flags =
-DVERSION=${this.custom_prog_version}
-DPIO_SRC_NAM="Solar2MQTT"
Expand All @@ -23,13 +23,13 @@ extra_scripts = pre:tools/mini_html.py
post:tools/post_compile.py
lib_deps =
bblanchon/ArduinoJson @ ^6.21.2
ottowinter/ESPAsyncTCP-esphome@^1.2.3
ottowinter/ESPAsyncWebServer-esphome @ ^3.1.0
esphome/ESPAsyncTCP-esphome @ 2.0.0
mathieucarbou/ESPAsyncWebServer @ 3.3.7
mathieucarbou/WebSerialLite@^6.2.0
alanswx/ESPAsyncWiFiManager @ ^0.31.0
plerup/EspSoftwareSerial @ ^8.2.0
https://github.com/dok-net/ghostl
robtillaart/CRC@^1.0.1
asjdf/WebSerialLite@^2.2.0
4-20ma/ModbusMaster@^2.0.1

[env:d1_mini]
Expand Down
14 changes: 7 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ void setup()
server.on("/set", HTTP_GET, [](AsyncWebServerRequest *request)
{
if(strlen(settings.data.httpUser) > 0 && !request->authenticate(settings.data.httpUser, settings.data.httpPass)) return request->requestAuthentication();
AsyncWebParameter *p = request->getParam(0);
if (p->name() == "CC")
{
commandFromUser = (p->value());
String message;
if (request->hasParam("CC")) {
message = request->getParam("CC")->value();
commandFromUser = (message);
}
if (p->name() == "ha")
{
haDiscTrigger = true;
if (request->hasParam("ha")) {
message = request->getParam("ha")->value();
haDiscTrigger = true;
}
request->send(200, "text/plain", "message received"); });

Expand Down

0 comments on commit 8490972

Please sign in to comment.