Skip to content

Commit

Permalink
Merge pull request #957 from argilo/fix-early-redraw-scan
Browse files Browse the repository at this point in the history
Don't redraw scan chart before first scan
  • Loading branch information
darksidelemm authored Dec 12, 2024
2 parents 7eacfd9 + 71dff5b commit 745d936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_rx/autorx/static/js/scan_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 745d936

Please sign in to comment.