Skip to content

Commit 7e040c4

Browse files
committed
Correction to update specific DiematicDelta registers only for DiematicDelta regulator
ok
1 parent d8bc01c commit 7e040c4

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/Diematic.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,13 @@ def refreshAttributes(self):
481481
self._zoneBNightTargetTemp=None;
482482
self._zoneBAntiiceTargetTemp=None;
483483

484-
# nbImpuls coded in hex on 2 registers
485-
self._nbImpuls = self.hex2reg(DDREGISTER.NB_IMPULS_DIX, DDREGISTER.NB_IMPULS_UNIT);
486-
487-
# fctBrul coded in hex on 2 registers
488-
self._fctBrul = self.hex2reg(DDREGISTER.FCT_BRUL_DIX, DDREGISTER.FCT_BRUL_UNIT);
484+
#for Diematic Delta regulator only
485+
if type(self).__name__ == "DiematicDeltaPanel":
486+
# nbImpuls coded in hex on 2 registers
487+
self._nbImpuls = self.hex2reg(DDREGISTER.NB_IMPULS_DIX, DDREGISTER.NB_IMPULS_UNIT);
488+
489+
# fctBrul coded in hex on 2 registers
490+
self._fctBrul = self.hex2reg(DDREGISTER.FCT_BRUL_DIX, DDREGISTER.FCT_BRUL_UNIT);
489491

490492
self.updateCallback();
491493

0 commit comments

Comments
 (0)