1
0
forked from M-Labs/kirdy

gui: plot ld_pwr is zero if responsitivity not set

This commit is contained in:
linuswck 2024-06-17 12:38:59 +08:00
parent 57bfd6d83c
commit da50f372d9

View File

@ -209,7 +209,12 @@ class Graphs:
ts = report['ts'] ts = report['ts']
self.ld_i_set_connector.cb_append_data_point(ld_i_set, ts) self.ld_i_set_connector.cb_append_data_point(ld_i_set, ts)
self.pd_mon_pwr_connector.cb_append_data_point(pd_pwr, ts) if pd_pwr is not None:
self._pd_mon_pwr_plot.show()
self.pd_mon_pwr_connector.cb_append_data_point(pd_pwr, ts)
else:
self._pd_mon_pwr_plot.hide()
self.pd_mon_pwr_connector.cb_append_data_point(0.0, ts)
if tec_temp is not None: if tec_temp is not None:
self.tec_temp_connector.cb_append_data_point(tec_temp, ts) self.tec_temp_connector.cb_append_data_point(tec_temp, ts)