瀏覽代碼

Add warning about upgrading, convenience link to backup settings (#443)

* add warning about upgrading, convenience link to backup settings

* Fix version of ArduinoJson
Chris Mullins 6 年之前
父節點
當前提交
12c74ca834
共有 3 個文件被更改,包括 14 次插入3 次删除
  1. 2 2
      dist/index.html.gz.h
  2. 1 1
      platformio.ini
  3. 11 0
      web/src/index.html

文件差異過大導致無法顯示
+ 2 - 2
dist/index.html.gz.h


+ 1 - 1
platformio.ini

@@ -17,7 +17,7 @@ lib_deps_builtin =
 lib_deps_external =
   sidoh/RF24
   sidoh/WiFiManager#cmidgley
-  ArduinoJson
+  ArduinoJson@~5.13.2
   PubSubClient
   https://github.com/ratkins/RGBConverter
   Hash

+ 11 - 0
web/src/index.html

@@ -396,6 +396,17 @@
         <div class="modal-body">
           <div class="alert alert-warning">
             <p>
+              <b>
+                Always take a
+                <a href="/settings" download="settings.json">backup of your settings</a>
+                before upgrading.
+              </b>
+              Sometimes upgrades change flash offsets, which can corrupt the filesystem.  If this happens, clear
+              flash, re-upload the firmware, and restore the backup of your settings.
+            </p>
+          </div>
+          <div class="alert alert-warning">
+            <p>
             Download firmware binaries from the
             <a href="https://github.com/sidoh/esp8266_milight_hub/releases">GitHub releases page</a>.
             Check for a new version by clicking on the "Check for Updates" button.