Index: dialin/hd/blood_leak.py =================================================================== diff -u -r25ad5c79713a1ee12a358111ebda26340459ed4e -r8b646910f5d1622a443869456f242dc9aeddd73a --- dialin/hd/blood_leak.py (.../blood_leak.py) (revision 25ad5c79713a1ee12a358111ebda26340459ed4e) +++ dialin/hd/blood_leak.py (.../blood_leak.py) (revision 8b646910f5d1622a443869456f242dc9aeddd73a) @@ -94,7 +94,7 @@ self.blood_leak_serial_comm_state = 0 self.blood_leak_intensity = 0 self.blood_leak_blood_detect = 0 - self.blood_leak_intensity_moving_average = 0 + self.blood_leak_intensity_moving_average = 0.0 for cmd in EmbModeCommands.__members__: # Initialize all the embedded mode commands @@ -153,7 +153,7 @@ message['message'][MsgFieldPositions.START_POS_FIELD_5:MsgFieldPositions.END_POS_FIELD_5]))[0] self.blood_leak_blood_detect = struct.unpack('i', bytearray( message['message'][MsgFieldPositions.START_POS_FIELD_6:MsgFieldPositions.END_POS_FIELD_6]))[0] - self.blood_leak_intensity_moving_average = struct.unpack('i', bytearray( + self.blood_leak_intensity_moving_average = struct.unpack('f', bytearray( message['message'][MsgFieldPositions.START_POS_FIELD_7:MsgFieldPositions.END_POS_FIELD_7]))[0] self.hd_blood_leak_status_timestamp = timestamp