Index: dialin/hd/blood_flow.py =================================================================== diff -u -rc3cc81dada72714b9675594cc0c6a79975e8991d -rcad96c27c36d063aff0064813d3595175052aac1 --- dialin/hd/blood_flow.py (.../blood_flow.py) (revision c3cc81dada72714b9675594cc0c6a79975e8991d) +++ dialin/hd/blood_flow.py (.../blood_flow.py) (revision cad96c27c36d063aff0064813d3595175052aac1) @@ -114,17 +114,17 @@ def get_measured_blood_pump_mc_speed(self): """ - Gets the measured blood pump mc speed + Gets the measured blood pump motor controller speed - @return: The measured blood pump mc speed + @return: The measured blood pump motor controller speed """ return self.measured_blood_pump_mc_speed def get_measured_blood_pump_mc_current(self): """ - Gets the measured blood pump mc current + Gets the measured blood pump motor controller current - @return: the measured blood pump mc current + @return: the measured blood pump motor controller current """ return self.measured_blood_pump_mc_current @@ -288,9 +288,9 @@ self.logger.debug("Timeout!!!!") return False - def cmd_blood_pump_measured_current_override(self, curr, reset=NO_RESET): + def cmd_measured_blood_pump_mc_current_override(self, curr, reset=NO_RESET): """ - Constructs and sends the measured blood pump motor current override command + Constructs and sends the measured blood pump motor controller current override command @param curr: float - current (in mA) to override with @param reset: integer - 1 to reset a previous override, 0 to override Index: dialin/hd/rtc.py =================================================================== diff -u -r8d1f61499650e23dac6f857e48daad42180db949 -rcad96c27c36d063aff0064813d3595175052aac1 --- dialin/hd/rtc.py (.../rtc.py) (revision 8d1f61499650e23dac6f857e48daad42180db949) +++ dialin/hd/rtc.py (.../rtc.py) (revision cad96c27c36d063aff0064813d3595175052aac1) @@ -72,18 +72,24 @@ byteorder=DenaliMessage.BYTE_ORDER) self.rtc_epoch = ctypes.c_uint32(epoch) - def cmd_set_rtc_time_and_date(self, secs, mins, hours, days, months, years): + def cmd_set_rtc_time_and_date(self, second: int, minute: int, hour: int, day: int, month: int, year: int): """ - Constructs and sends the time and date to be written to rtc + Sets the RTC time and date from the provided - @return: 1 if successful, zero otherwise + @param second: (int) Second + @param minute: (int) Minute + @param hour: (int) Hour + @param day: (int) Day + @param month: (int) Month + @param year: (int) Year + @return: 1 if Successful, False otherwise """ - sec = bytes([secs]) - mint = bytes([mins]) - hour = bytes([hours]) - day = bytes([days]) - month = bytes([months]) - year = integer_to_bytearray(years) + sec = bytes([second]) + mint = bytes([minute]) + hour = bytes([hour]) + day = bytes([day]) + month = bytes([month]) + year = integer_to_bytearray(year) payload = sec + mint + hour + day + month + year message = DenaliMessage.build_message(channel_id=DenaliChannels.dialin_to_hd_ch_id, Index: dialin/hd/ui_proxy.py =================================================================== diff -u -rc3cc81dada72714b9675594cc0c6a79975e8991d -rcad96c27c36d063aff0064813d3595175052aac1 --- dialin/hd/ui_proxy.py (.../ui_proxy.py) (revision c3cc81dada72714b9675594cc0c6a79975e8991d) +++ dialin/hd/ui_proxy.py (.../ui_proxy.py) (revision cad96c27c36d063aff0064813d3595175052aac1) @@ -757,12 +757,11 @@ """ Constructs and sends a ui UF change settings confirmed by user message - @param response (int): 0 for rejected, 1 for confirmed - @param vol (float): volume (in L) that was confirmed - @param tm (int): treatment time (in min) that was confirmed - @param rate (float): ultrafiltration rate (in mL/min) that was confirmed - - @return: none + @param response: (int) 0 for rejected, 1 for confirmed + @param vol: (float): volume (in L) that was confirmed + @param tm: (int) treatment time (in min) that was confirmed + @param rate: (float) ultrafiltration rate (in mL/min) that was confirmed + @return: None """ resp = integer_to_bytearray(response)