From b130452fcf80a8c5d763702dd3cb996e32c6995a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BenjaminDanneg=C3=A5rd?= Date: Wed, 25 Sep 2024 23:46:03 +0200 Subject: [PATCH] Moved line of code --- .../tutorials/lora-button-press/lora-button-press.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/hardware/01.mkr/01.boards/mkr-wan-1310/tutorials/lora-button-press/lora-button-press.md b/content/hardware/01.mkr/01.boards/mkr-wan-1310/tutorials/lora-button-press/lora-button-press.md index 610b22bdae..88d28e6329 100644 --- a/content/hardware/01.mkr/01.boards/mkr-wan-1310/tutorials/lora-button-press/lora-button-press.md +++ b/content/hardware/01.mkr/01.boards/mkr-wan-1310/tutorials/lora-button-press/lora-button-press.md @@ -199,12 +199,12 @@ void loop() { while (LoRa.available()) { contents += (char)LoRa.read(); } - + + Serial.println(contents); // print RSSI of packet Serial.print("' with RSSI "); Serial.println(LoRa.packetRssi()); - Serial.println(contents); - + if(contents.equals(buttonPress)){ x = !x; } @@ -306,10 +306,10 @@ void loop() { contents += (char)LoRa.read(); } + Serial.println(contents); // print RSSI of packet Serial.print("' with RSSI "); Serial.println(LoRa.packetRssi()); - Serial.println(contents); if(contents.equals(buttonPress)){ x = !x;