From 1e8f3835a180665901bbe34081b7f6468fa72f1a Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Sun, 21 Aug 2016 14:35:33 -0400 Subject: [PATCH] Rename packetRSSI to packetRSSI --- API.md | 2 +- examples/LoRaReceiver/LoRaReceiver.ino | 2 +- keywords.txt | 2 +- src/LoRa.cpp | 2 +- src/LoRa.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index 3c52e38..5f7563e 100644 --- a/API.md +++ b/API.md @@ -94,7 +94,7 @@ Returns the packet size or `0` if no packet was received. ### Packet RSSI ```arduino -int rssi = LoRa.packetRSSI(); +int rssi = LoRa.packetRssi(); ``` Returns the RSSI of the received packet. diff --git a/examples/LoRaReceiver/LoRaReceiver.ino b/examples/LoRaReceiver/LoRaReceiver.ino index aa7af1d..ccbb453 100644 --- a/examples/LoRaReceiver/LoRaReceiver.ino +++ b/examples/LoRaReceiver/LoRaReceiver.ino @@ -27,6 +27,6 @@ void loop() { // print RSSI of packet Serial.print("' with RSSI "); - Serial.println(LoRa.packetRSSI()); + Serial.println(LoRa.packetRssi()); } } diff --git a/keywords.txt b/keywords.txt index c29dd03..2379223 100644 --- a/keywords.txt +++ b/keywords.txt @@ -19,7 +19,7 @@ beginPacket KEYWORD2 endPacket KEYWORD2 parsePacket KEYWORD2 -packetRSSI KEYWORD2 +packetRssi KEYWORD2 write KEYWORD2 diff --git a/src/LoRa.cpp b/src/LoRa.cpp index 0c3b9b5..41e63ef 100644 --- a/src/LoRa.cpp +++ b/src/LoRa.cpp @@ -154,7 +154,7 @@ int LoRaClass::parsePacket() return packetLength; } -int LoRaClass::packetRSSI() +int LoRaClass::packetRssi() { return (readRegister(REG_PKT_RSSI_VALUE) - 164); } diff --git a/src/LoRa.h b/src/LoRa.h index 1d7e760..f3e8072 100644 --- a/src/LoRa.h +++ b/src/LoRa.h @@ -15,7 +15,7 @@ public: int endPacket(); int parsePacket(); - int packetRSSI(); + int packetRssi(); // from Print virtual size_t write(uint8_t byte);