Index: dialin/dg/calibration_record.py =================================================================== diff -u -r47eb368c929e01fbff7d7749a822ee0efb467ea5 -rc4776c1885f259b231532ef5ba7e904178cd0005 --- dialin/dg/calibration_record.py (.../calibration_record.py) (revision 47eb368c929e01fbff7d7749a822ee0efb467ea5) +++ dialin/dg/calibration_record.py (.../calibration_record.py) (revision c4776c1885f259b231532ef5ba7e904178cd0005) @@ -161,7 +161,7 @@ @return: True upon success, False otherwise """ # Pass the new changes as well as the previous calibration record - record_packets = self._utilities.prepare_record_to_send_to_fw(self.dg_calibration_record) + record_packets = self._utilities.prepare_record_to_send_to_fw(previous_record) self.logger.debug('Setting DG calibration started') # Update all the data packets with the last message count since is the number of messages that firmware Index: dialin/dg/switches.py =================================================================== diff -u -rc19568936f7925714a39b7951eae672ab91769a4 -rc4776c1885f259b231532ef5ba7e904178cd0005 --- dialin/dg/switches.py (.../switches.py) (revision c19568936f7925714a39b7951eae672ab91769a4) +++ dialin/dg/switches.py (.../switches.py) (revision c4776c1885f259b231532ef5ba7e904178cd0005) @@ -41,8 +41,7 @@ if self.can_interface is not None: channel_id = DenaliChannels.dg_sync_broadcast_ch_id msg_id = MsgIds.MSG_ID_DG_SWITCHES_DATA.value - self.can_interface.register_receiving_publication_function(channel_id, msg_id, - self._handler_switches_sync) + self.can_interface.register_receiving_publication_function(channel_id, msg_id, self._handler_switches_sync) self.dg_switches_status = {DGSwitchesName.CONCENTRATE_CAP.name: DGSwitchStatus.OFF.value, DGSwitchesName.DIALYSATE_CAP.name: DGSwitchStatus.OFF.value, @@ -72,9 +71,9 @@ fluid_door = struct.unpack('i', bytearray( message['message'][MsgFieldPositions.START_POS_FIELD_3:MsgFieldPositions.END_POS_FIELD_3]))[0] - self.dg_switches_status[DGSwitchesName.CONCENTRATE_CAP.name] = conc_cap - self.dg_switches_status[DGSwitchesName.DIALYSATE_CAP.name] = dialysate_cap - self.dg_switches_status[DGSwitchesName.FLUID_DOOR] = fluid_door + self.dg_switches_status[DGSwitchesName.CONCENTRATE_CAP.name] = DGSwitchStatus(conc_cap).value + self.dg_switches_status[DGSwitchesName.DIALYSATE_CAP.name] = DGSwitchStatus(dialysate_cap).value + self.dg_switches_status[DGSwitchesName.FLUID_DOOR.name] = DGSwitchStatus(fluid_door).value def cmd_dg_switch_status_override(self, switch: int, status: int, reset: int = NO_RESET) -> int: """ Index: dialin/hd/switches.py =================================================================== diff -u -rc19568936f7925714a39b7951eae672ab91769a4 -rc4776c1885f259b231532ef5ba7e904178cd0005 --- dialin/hd/switches.py (.../switches.py) (revision c19568936f7925714a39b7951eae672ab91769a4) +++ dialin/hd/switches.py (.../switches.py) (revision c4776c1885f259b231532ef5ba7e904178cd0005) @@ -64,7 +64,7 @@ front_door = struct.unpack('i', bytearray( message['message'][MsgFieldPositions.START_POS_FIELD_1:MsgFieldPositions.END_POS_FIELD_1]))[0] - self.hd_switches_status[HDSwitchesNames.FRONT_DOOR.name] = front_door + self.hd_switches_status[HDSwitchesNames.FRONT_DOOR.name] = HDSwitchStatus(front_door).value def cmd_hd_switch_status_override(self, switch: int, status: int, reset: int = NO_RESET) -> int: """ Index: dialin/utils/nv_ops_utils.py =================================================================== diff -u -r47eb368c929e01fbff7d7749a822ee0efb467ea5 -rc4776c1885f259b231532ef5ba7e904178cd0005 --- dialin/utils/nv_ops_utils.py (.../nv_ops_utils.py) (revision 47eb368c929e01fbff7d7749a822ee0efb467ea5) +++ dialin/utils/nv_ops_utils.py (.../nv_ops_utils.py) (revision c4776c1885f259b231532ef5ba7e904178cd0005) @@ -315,7 +315,6 @@ crc = NVOpsUtils.get_group_record_crc(sub_value) sub_value['crc'][1] = crc - print(sub_key, sub_value) return record @staticmethod @@ -503,9 +502,9 @@ read_start_index += value_bytes if inner_key is None: - calibration_record[group][key][self._DATA_VALUE_INDEX] = data if data_type != '