„index.h“ ändern
This commit is contained in:
parent
3dda494e45
commit
837c13a347
7
index.h
7
index.h
@ -341,7 +341,12 @@ function getDATA() {
|
||||
// display VSWR bar graph if enabled via backend configuration
|
||||
if (data[19] == "true") {
|
||||
document.getElementById("vswr_led_box").style.display = 'inline-block';
|
||||
swr_vu_meter.setAttribute('data-val', strtoint(data[6]-1));
|
||||
// if SWR value is invalid -> set to 0
|
||||
if (data[6] == "-1" || data[6] == "inf" || data[15] == "1" || data[16] == "1") {
|
||||
swr_vu_meter.setAttribute('data-val', 0);
|
||||
} else {
|
||||
swr_vu_meter.setAttribute('data-val', strtoint(data[6]-1));
|
||||
}
|
||||
} else {
|
||||
document.getElementById("vswr_led_box").style.display = 'none';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user