Index: leahi_dialin/dd/modules/dialysate_pump.py =================================================================== diff -u -r5d1444a2ef341b1ca053c81a4d4fddfacac6b33c -r03936b9327b52b7ea33aecb5aa2129f33583bc35 --- leahi_dialin/dd/modules/dialysate_pump.py (.../dialysate_pump.py) (revision 5d1444a2ef341b1ca053c81a4d4fddfacac6b33c) +++ leahi_dialin/dd/modules/dialysate_pump.py (.../dialysate_pump.py) (revision 03936b9327b52b7ea33aecb5aa2129f33583bc35) @@ -349,21 +349,21 @@ self.logger.error("Timeout!!!!") return False - def cmd_dialysate_start_stop_override(self, pump_id: int, cmd: int, reset: int = NO_RESET) -> int: + def cmd_dialysate_set_start_stop(self, pump_id: int, command: int, speed: int ) -> int: """ - Constructs and sends the dialysate pump start stop override command + Constructs and sends the dialysate pump start stop command - @param pump_id: unsigned int - concentrate pump ID - @param cmd: int - value to command the dialysate pump - @param reset: integer - 1 to reset a previous override, 0 to override + @param pump_id: unsigned int - dialysate pump ID + @param command: int - value to command the dialysate pump + @param speed: integer - rpm to set the speed to @return: 1 if successful, zero otherwise """ - reset_byte_array = integer_to_bytearray(reset) - direction_byte_array = float_to_bytearray(cmd) - pump_id_byte_array = integer_to_bytearray(pump_id) - payload = reset_byte_array + direction_byte_array + pump_id_byte_array + pmp = integer_to_bytearray(pump_id) + cmd = integer_to_bytearray(command) + rpm = integer_to_bytearray(speed) + payload = pmp + cmd + rpm message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_dd_ch_id, message_id=MsgIds.MSG_ID_DD_DIALYSATE_PUMPS_START_STOP_OVERRIDE_REQUEST.value,