The name receive_symbol() is more appropriate because the function
receives Morse symbols, not directly text characters.
self.end_of_message = False
self.end_of_message = False
- def receive_character(self):
+ def receive_symbol(self):
current_ring_time = time.time()
if self.previous_ring_time == -1:
current_ring_time = time.time()
if self.previous_ring_time == -1:
def receive_loop(self):
while not self.end_of_message:
self.modem.get_response("RING")
def receive_loop(self):
while not self.end_of_message:
self.modem.get_response("RING")
- self.receive_character()
logging.debug("Current message: %s", self.morse_message)
self.end_of_message = False
logging.debug("Current message: %s", self.morse_message)
self.end_of_message = False