From 804480c33d5f3556deaf1723b5402bee239360bd Mon Sep 17 00:00:00 2001 From: aderusha Date: Wed, 3 Mar 2021 15:01:07 -0500 Subject: [PATCH] Resolve weird memory alignment bug in udpate var --- Arduino_Sketch/HASwitchPlate/HASwitchPlate.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Arduino_Sketch/HASwitchPlate/HASwitchPlate.ino b/Arduino_Sketch/HASwitchPlate/HASwitchPlate.ino index adff676..0c80858 100644 --- a/Arduino_Sketch/HASwitchPlate/HASwitchPlate.ino +++ b/Arduino_Sketch/HASwitchPlate/HASwitchPlate.ino @@ -159,10 +159,10 @@ WiFiClient telnetClient; // Telnet client MDNSResponder::hMDNSService hMDNSService; // mDNS EspSaveCrash SaveCrash; // Save crash details to flash +// URL for auto-update check of "version.json" +const char UPDATE_URL[] PROGMEM = "https://raw.githubusercontent.com/HASwitchPlate/HASPone/main/update/version.json"; // Additional CSS style to match Hass theme const char HASP_STYLE[] PROGMEM = ""; -// URL for auto-update "version.json" -const char UPDATE_URL[] PROGMEM = "https://raw.githubusercontent.com/HASwitchPlate/HASPone/main/update/version.json"; // Default link to compiled Arduino firmware image String espFirmwareUrl = "https://raw.githubusercontent.com/HASwitchPlate/HASPone/main/Arduino_Sketch/HASwitchPlate.ino.d1_mini.bin"; // Default link to compiled Nextion firmware images @@ -1781,7 +1781,7 @@ void espWifiConnect() WiFi.mode(WIFI_STA); // Set the radio to Station if (String(wifiSSID) == "") - { // If the sketch has not hard-coded wifiSSID, attempt to use saved creds or use WiFiManager to collect required information from the user. + { // If the sketch has no hard-coded wifiSSID, attempt to use saved creds or use WiFiManager to collect required information from the user. // First, check if we have saved wifi creds and try to connect manually. if (WiFi.SSID() != "") @@ -3535,7 +3535,7 @@ void debugPrint(const String &debugText) } } -// //////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////// void debugPrintCrash() { // Debug output line of text to our debug targets SoftwareSerial debugSerial(-1, 1); // -1==nc for RX, 1==TX pin