Index: dialin/dg/hd_proxy.py =================================================================== diff -u -rfffbd99bcd6d15ce790e490e3b455fda43e34b8d -r8bdc5afe603faab1247807fce2b875834468cefe --- dialin/dg/hd_proxy.py (.../hd_proxy.py) (revision fffbd99bcd6d15ce790e490e3b455fda43e34b8d) +++ dialin/dg/hd_proxy.py (.../hd_proxy.py) (revision 8bdc5afe603faab1247807fce2b875834468cefe) @@ -82,19 +82,19 @@ self.logger.debug("Timeout!!!!") return False - def cmd_fill(self, volume=1500): + def cmd_fill(self, volume=1500, start=1): """ Constructs and sends the fill command. Constraints: DG must be in re-circulate water state of re-circulate mode. Given fill to volume must be between 0 and 1950 mL. @param volume: unsigned int - volume (in mL) to fill inactive reservoir to. + @param start: unsigned int - 1 = start fill, 0 = stop fill. @return: 1 if successful, zero otherwise """ - vol = integer_to_bytearray(volume) - payload = vol + payload = integer_to_bytearray(volume) + integer_to_bytearray(start) message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_dg_ch_id, message_id=MsgIds.MSG_ID_DG_FILL_CMD.value, @@ -121,6 +121,7 @@ Given drain to volume must be between 0 and 1950 mL. @param volume: unsigned int - volume (in mL) to drain the inactive reservoir to. + @param tareLoadCell: bool - flag indicates to tare loadcell. @return: 1 if successful, zero otherwise """