[SX126x] Fixed serial output format

This commit is contained in:
jgromes 2019-06-02 16:23:40 +02:00
parent ba5522981d
commit 025d6d71a7
2 changed files with 6 additions and 6 deletions

View file

@ -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"));

View file

@ -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);
}