Don't redraw scan chart before first scan

pull/957/head
Clayton Smith 2024-12-12 11:31:39 -05:00
rodzic 7eacfd9fe3
commit 71dff5b35c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -91,7 +91,7 @@ function setup_scan_chart(){
function redraw_scan_chart(){
// Plot the updated data.
if(scan_chart_last_drawn === scan_chart_latest_timestamp){
if(!scan_chart_latest_timestamp || scan_chart_last_drawn === scan_chart_latest_timestamp){
// No need to re-draw.
//console.log("No need to re-draw.");
return;