Update low bandwidth labels

This commit is contained in:
Mashintime 2023-07-04 11:36:52 -04:00
parent fa0e7e15ac
commit a3ed906051
2 changed files with 9 additions and 9 deletions

View file

@ -344,9 +344,9 @@ window.addEventListener("DOMContentLoaded", () => {
}
if (config.low_bandwidth_mode == "True") {
document.getElementById("500HzModeSwitch").checked = true;
document.getElementById("250HzModeSwitch").checked = true;
} else {
document.getElementById("500HzModeSwitch").checked = false;
document.getElementById("250HzModeSwitch").checked = false;
}
if (config.high_graphics == "True") {
@ -1158,8 +1158,8 @@ window.addEventListener("DOMContentLoaded", () => {
});
// enable 500z Switch clicked
document.getElementById("500HzModeSwitch").addEventListener("click", () => {
if (document.getElementById("500HzModeSwitch").checked == true) {
document.getElementById("250HzModeSwitch").addEventListener("click", () => {
if (document.getElementById("250HzModeSwitch").checked == true) {
config.low_bandwidth_mode = "True";
} else {
config.low_bandwidth_mode = "False";
@ -1484,7 +1484,7 @@ window.addEventListener("DOMContentLoaded", () => {
var enable_fft = "False";
}
if (document.getElementById("500HzModeSwitch").checked == true) {
if (document.getElementById("250HzModeSwitch").checked == true) {
var low_bandwidth_mode = "True";
} else {
var low_bandwidth_mode = "False";

View file

@ -3671,17 +3671,17 @@
</div>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50"
>Enable 563Hz only mode</label
>Enable 250Hz only mode</label
>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="500HzModeSwitch"
id="250HzModeSwitch"
/>
<label class="form-check-label" for="500HzModeSwitch"
>563Hz</label
<label class="form-check-label" for="250HzModeSwitch"
>250Hz</label
>
</div>
</label>