CallDistanceTransceiver.py: rename receive_character() to receive_symbol()
authorAntonio Ospite <ao2@ao2.it>
Sat, 2 Jan 2016 21:45:52 +0000 (22:45 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 09:48:25 +0000 (10:48 +0100)
The name receive_symbol() is more appropriate because the function
receives Morse symbols, not directly text characters.

src/savemysugar/CallDistanceTransceiver.py

index d05236b..f04c533 100755 (executable)
@@ -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