From 5ad53743adab63cddd6dc1e5c0876cce8130e114 Mon Sep 17 00:00:00 2001 From: Ewald Wasscher Date: Wed, 22 Aug 2018 21:29:46 +0200 Subject: [PATCH] Minor cosmetic change to the serial output of the example sketches The message "Received X bytes of payload" upon receiving a downlink packet after transmit is now on one line instead of three. --- examples/ttn-abp/ttn-abp.ino | 4 ++-- examples/ttn-otaa/ttn-otaa.ino | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ttn-abp/ttn-abp.ino b/examples/ttn-abp/ttn-abp.ino index a8b4a180..1515e5ed 100644 --- a/examples/ttn-abp/ttn-abp.ino +++ b/examples/ttn-abp/ttn-abp.ino @@ -104,8 +104,8 @@ void onEvent (ev_t ev) { if (LMIC.txrxFlags & TXRX_ACK) Serial.println(F("Received ack")); if (LMIC.dataLen) { - Serial.println(F("Received ")); - Serial.println(LMIC.dataLen); + Serial.print(F("Received ")); + Serial.print(LMIC.dataLen); Serial.println(F(" bytes of payload")); } // Schedule next transmission diff --git a/examples/ttn-otaa/ttn-otaa.ino b/examples/ttn-otaa/ttn-otaa.ino index d667aa2d..e9bbfe98 100644 --- a/examples/ttn-otaa/ttn-otaa.ino +++ b/examples/ttn-otaa/ttn-otaa.ino @@ -107,8 +107,8 @@ void onEvent (ev_t ev) { if (LMIC.txrxFlags & TXRX_ACK) Serial.println(F("Received ack")); if (LMIC.dataLen) { - Serial.println(F("Received ")); - Serial.println(LMIC.dataLen); + Serial.print(F("Received ")); + Serial.print(LMIC.dataLen); Serial.println(F(" bytes of payload")); } // Schedule next transmission