From 025d6d71a7c4d8aa92c12da79ffc679789e50a05 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 2 Jun 2019 16:23:40 +0200 Subject: [PATCH] [SX126x] Fixed serial output format --- examples/SX127x/SX127x_Receive/SX127x_Receive.ino | 8 ++++---- .../SX127x_Receive_Interrupt/SX127x_Receive_Interrupt.ino | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/SX127x/SX127x_Receive/SX127x_Receive.ino b/examples/SX127x/SX127x_Receive/SX127x_Receive.ino index 18e4ab48..9aed5e3a 100644 --- a/examples/SX127x/SX127x_Receive/SX127x_Receive.ino +++ b/examples/SX127x/SX127x_Receive/SX127x_Receive.ino @@ -75,24 +75,24 @@ void loop() { Serial.println(F("success!")); // print the data of the packet - Serial.print(F("[SX1278] Data:\t\t")); + Serial.print(F("[SX1278] Data:\t\t\t")); Serial.println(str); // print the RSSI (Received Signal Strength Indicator) // of the last received packet - Serial.print(F("[SX1278] RSSI:\t\t")); + Serial.print(F("[SX1278] RSSI:\t\t\t")); Serial.print(lora.getRSSI()); Serial.println(F(" dBm")); // print the SNR (Signal-to-Noise Ratio) // of the last received packet - Serial.print(F("[SX1278] SNR:\t\t")); + Serial.print(F("[SX1278] SNR:\t\t\t")); Serial.print(lora.getSNR()); Serial.println(F(" dBm")); // print frequency error // of the last received packet - Serial.print(F("Frequency error:\t")); + Serial.print(F("[SX1278] Frequency error:\t")); Serial.print(lora.getFrequencyError()); Serial.println(F(" Hz")); diff --git a/examples/SX127x/SX127x_Receive_Interrupt/SX127x_Receive_Interrupt.ino b/examples/SX127x/SX127x_Receive_Interrupt/SX127x_Receive_Interrupt.ino index c1cce7c4..10c74b09 100644 --- a/examples/SX127x/SX127x_Receive_Interrupt/SX127x_Receive_Interrupt.ino +++ b/examples/SX127x/SX127x_Receive_Interrupt/SX127x_Receive_Interrupt.ino @@ -144,11 +144,11 @@ void loop() { } else if (state == ERR_CRC_MISMATCH) { // packet was received, but is malformed - Serial.println(F("CRC error!")); + Serial.println(F("[SX1278] CRC error!")); } else { // some other error occurred - Serial.print(F("failed, code ")); + Serial.print(F("[SX1278] Failed, code ")); Serial.println(state); }