From f05b583ae4a0c093bba5b14216f5c54664c74d18 Mon Sep 17 00:00:00 2001 From: spirkelmann Date: Sat, 30 Nov 2019 19:37:07 +0100 Subject: [PATCH] changed output message --- micropython/lora_transceiver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/micropython/lora_transceiver.py b/micropython/lora_transceiver.py index ec8874d..ef52a71 100644 --- a/micropython/lora_transceiver.py +++ b/micropython/lora_transceiver.py @@ -49,20 +49,20 @@ class LoRaTransceiver: """ data_hex = " ".join(list(map(lambda x: "{0:02x}".format(x), data))).upper() print("Sending data {}".format(data_hex)) + if self.display is not None: + self.display.show_text_wrap("Sending data {}".format(data_hex)) self.lora.println_raw(data) - if self.display is not None: - self.display.show_text_wrap("Message {} sent.".format(data)) def send_string(self, message): """ send a message message should be a string """ print("Sending string {}".format(message)) + if self.display is not None: + self.display.show_text_wrap("Sending string {}".format(message)) self.lora.println(message) - if self.display is not None: - self.display.show_text_wrap("Message {} sent.".format(message)) def recv(self): """ start listening for messages and output them on the console """