Merge pull request #869 from argilo/scan-chart-threshold-fix

Don't update scan chart data until there's actual data
testing
Mark Jessop 2024-03-30 10:07:29 +10:30 zatwierdzone przez GitHub
commit 2e04da0754
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -197,6 +197,10 @@
// There is Scan data ready for us!
// Grab the latest set of data.
$.getJSON("get_scan_data", function(data){
if (data.freq.length == 0) {
return;
}
// Load the data into our data stores.
scan_chart_spectra.columns[0] = ['x_spectra'].concat(data.freq);
scan_chart_spectra.columns[1] = ['Spectra'].concat(data.power);