[QSO] do not populate power from API if its returned as 0

treat 0 as null
pull/1453/head
Peter Goodhall 2022-04-08 20:30:02 +01:00
rodzic f3f23f6273
commit 4f34408261
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1098,7 +1098,9 @@ $(document).on('keypress',function(e) {
}
$("#sat_name").val(data.satname);
$("#sat_mode").val(data.satmode);
$("#transmit_power").val(data.power);
if(data.power != 0) {
$("#power").val(data.power);
}
// Display CAT Timeout warnng based on the figure given in the config file
var minutes = Math.floor(<?php echo $this->config->item('cat_timeout_interval'); ?> / 60);