diff --git a/plots.py b/plots.py
index 9dce967cb7a06c78ad00c793841061be77c21047..d5573b53ab0493b1cb1582d3e735b4ba9506c93d 100644
--- a/plots.py
+++ b/plots.py
@@ -33,7 +33,7 @@ def plot_fulldata(fulldata, axes=None, fig=None, save=False, output="fulldata.pn
     if realtime:
         fig.canvas.draw()
         fig.canvas.flush_events()
-        if plot_ads:
+        if not plot_ads:
            return fig, (ax1,ax2), (line1,line2)
         else:
             return fig, (ax1, ax2), (line1, line2, line3, line4)
@@ -66,4 +66,4 @@ def update_realtime_fulldata_plot(last_measurement, acquired_dataset, lines, axe
     fig.canvas.draw()
     fig.canvas.flush_events()
     
-    return fig,(ax1,ax2), lines, np.array([i_rt,u_rt,t]).T
\ No newline at end of file
+    return fig,(ax1,ax2), lines, np.array([i_rt,u_rt,t]).T