„index.h“ ändern

This commit is contained in:
Michael Clemens // DK1MI 2023-05-04 12:33:57 +00:00
parent 9924235ad8
commit 470cbc0276

26
index.h
View File

@ -18,23 +18,18 @@ const char MAIN_page[] PROGMEM = R"=====(
<div class="card">
<h1>FWD Voltage</h1>
<h1><span id="FWDValue">0</span>mV</h1>
<h1>FWD Power</h1>
<h1><span id="FWDValue">0</span> dBm</h1>
</div>
<div class="card">
<h1>REF Voltage</h1>
<h1><span id="REFValue">0</span>mV</h1>
</div>
<div class="card">
<h1>DRV Voltage</h1>
<h1><span id="DRVValue">0</span>mV</h1>
<h1>REF Power</h1>
<h1><span id="REFValue">0</span> dBm</h1>
</div>
<div class="card">
<h1>SWR</h1>
<h1><span id="SWRValue">0</span>mV</h1>
<h1><span id="SWRValue">0</span></h1>
</div>
<div class="card">
@ -75,17 +70,6 @@ function getREF() {
xhttp.open("GET", "readREF", true);
xhttp.send();
}
function getDRV() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("DRVValue").innerHTML =
this.responseText;
}
};
xhttp.open("GET", "readDRV", true);
xhttp.send();
}
function getSWR() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {