Index: simulator/plugins/treatmentranges/loader.py =================================================================== diff -u -red2d7cb5c8c2059444fd17cd4e1c0975461a903c -r7f0678d0f61fa99a35a1f34fac6c36e12ba93f20 --- simulator/plugins/treatmentranges/loader.py (.../loader.py) (revision ed2d7cb5c8c2059444fd17cd4e1c0975461a903c) +++ simulator/plugins/treatmentranges/loader.py (.../loader.py) (revision 7f0678d0f61fa99a35a1f34fac6c36e12ba93f20) @@ -53,7 +53,8 @@ :return: none """ self.timer.timeout.connect(self.do_ranges_data) - # self.timer.timeout.connect(self.do_duration_data) + + self.timer.timeout.connect(self.do_duration_data) self.sldDurationValue.valueChanged.connect(self.do_duration_data) def _init_widgets(self): @@ -70,10 +71,11 @@ sends the duration message :return: none """ - value = self.sldDurationValue.value() - self.hd_simulator.cmd_set_treatment_time( - self.spnDurationMax.value() * 60, value - ) + if self.chkRangesBroadcast.isChecked(): + value = self.sldDurationValue.value() + self.hd_simulator.cmd_set_treatment_time( + self.spnDurationMax.value() * 60, value + ) @Slot() def do_ranges_data(self):