typo--; more robust web interface

pull/63/head
Hansi, dl9rdz 2020-12-28 17:14:01 +01:00
rodzic e273c5e38e
commit 1d28450861
3 zmienionych plików z 16 dodań i 14 usunięć

Wyświetl plik

@ -22,7 +22,7 @@
#include "rs92gps.h"
#include "mqtt.h"
#include "esp_heap_caps.h"
//#define ESP_MEM_DEBUG 1
int e;
enum MainState { ST_DECODER, ST_SPECTRUM, ST_WIFISCAN, ST_UPDATE, ST_TOUCHCALIB };
@ -476,7 +476,7 @@ struct st_configitems config_list[] = {
{"startfreq", "Startfreq (MHz)", 0, &sonde.config.startfreq},
{"channelbw", "Bandwidth (kHz)", 0, &sonde.config.channelbw},
{"marker", "Spectrum MHz marker", 0, &sonde.config.marker},
{"noisefloor", "Sepctrum noisefloor", 0, &sonde.config.noisefloor},
{"noisefloor", "Spectrum noisefloor", 0, &sonde.config.noisefloor},
/* decoder settings */
{"", "Receiver configuration", -5, NULL},
{"showafc", "Show AFC value", 0, &sonde.config.showafc},
@ -970,7 +970,9 @@ void SetupAsyncServer() {
// Route to load style.css file
server.on("/style.css", HTTP_GET, [](AsyncWebServerRequest * request) {
request->send(SPIFFS, "/style.css", "text/css");
AsyncWebServerResponse *response = request->beginResponse(SPIFFS, "/style.css", "text/css");
response->addHeader("Cache-Control","max-age=86400");
request->send(response);
});
// Route to set GPIO to HIGH

Wyświetl plik

@ -24,19 +24,19 @@
<button class="tablinks" onclick="selTab(event,'About')">About</button>
</div>
<div id="QRG" class="tabcontent">
<div id="QRG" class="tabcontent" data-src="qrg.html">
<h3> QRG - Setup</h3>
<iframe src="qrg.html" style="border:none;" width="100%%" height="100%%"></iframe>
<iframe src="" style="border:none;" width="100%%" height="100%%"></iframe>
</div>
<div id="WiFi" class="tabcontent">
<div id="WiFi" class="tabcontent" data-src="wifi.html">
<h3> WiFi - Settings</h3>
<iframe src="wifi.html" style="border:none;" width="100%%" height="100%%"></iframe>
<iframe src="" style="border:none;" width="100%%" height="100%%"></iframe>
</div>
<div id="Data" class="tabcontent" data-src="status.html">
<h3>Data</h3>
<iframe src="status.html" style="border:none;" width="100%%" height="100%%"></iframe>
<iframe src="" style="border:none;" width="100%%" height="100%%"></iframe>
</div>
<!--
@ -45,14 +45,14 @@
</div>
-->
<div id="Config" class="tabcontent">
<div id="Config" class="tabcontent" data-src="config.html">
<h3>Configuration</h3>
<iframe src="config.html" style="border:none;" width="100%%" height="100%%"></iframe>
<iframe src="" style="border:none;" width="100%%" height="100%%"></iframe>
</div>
<div id="Control" class="tabcontent">
<div id="Control" class="tabcontent" data-src="control.html">
<h3>Control</h3>
<iframe src="control.html" style="border:none;" width="100%%" height="100%%"></iframe>
<iframe src="" style="border:none;" width="100%%" height="100%%"></iframe>
</div>
<div id="About" class="tabcontent">

Wyświetl plik

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20201227m";
const char *version_id = "devel20201228";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=6;
const int SPIFFS_MINOR=7;