From b3d807c12d9dc3feb8ed63675829ea8d40ce2fd3 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 2 Jan 2016 22:45:52 +0100 Subject: [PATCH 1/1] CallDistanceTransceiver.py: rename receive_character() to receive_symbol() The name receive_symbol() is more appropriate because the function receives Morse symbols, not directly text characters. --- src/savemysugar/CallDistanceTransceiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/savemysugar/CallDistanceTransceiver.py b/src/savemysugar/CallDistanceTransceiver.py index d05236b..f04c533 100755 --- a/src/savemysugar/CallDistanceTransceiver.py +++ b/src/savemysugar/CallDistanceTransceiver.py @@ -290,7 +290,7 @@ class CallDistanceTransceiver(object): self.end_of_message = False - def receive_character(self): + def receive_symbol(self): current_ring_time = time.time() if self.previous_ring_time == -1: @@ -341,7 +341,7 @@ class CallDistanceTransceiver(object): def receive_loop(self): while not self.end_of_message: self.modem.get_response("RING") - self.receive_character() + self.receive_symbol() logging.debug("Current message: %s", self.morse_message) self.end_of_message = False -- 2.1.4