From e479f1da28a301349aa7d38f8a44989b10820cb7 Mon Sep 17 00:00:00 2001 From: Christine Yen Date: Thu, 23 Aug 2018 00:29:36 -0700 Subject: [PATCH] Update RFM69.h with comment differentiating RSSI and readRSSI() --- RFM69.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RFM69.h b/RFM69.h index 989fac2..99a0a97 100644 --- a/RFM69.h +++ b/RFM69.h @@ -169,7 +169,7 @@ class RFM69 { static volatile uint8_t PAYLOADLEN; static volatile uint8_t ACK_REQUESTED; static volatile uint8_t ACK_RECEIVED; // should be polled immediately after sending a packet with ACK request - static volatile int16_t RSSI; // most accurate RSSI during reception (closest to the reception) + static volatile int16_t RSSI; // most accurate RSSI during reception (closest to the reception). RSSI of last packet. static volatile uint8_t _mode; // should be protected? RFM69(uint8_t slaveSelectPin, uint8_t interruptPin, bool isRFM69HW, uint8_t interruptNum) //interruptNum is now deprecated @@ -191,7 +191,7 @@ class RFM69 { void setFrequency(uint32_t freqHz); void encrypt(const char* key); void setCS(uint8_t newSPISlaveSelect); - int16_t readRSSI(bool forceTrigger=false); + int16_t readRSSI(bool forceTrigger=false); // *current* signal strength indicator; e.g. > 100dBm says the frequency channel is free + ready to transmit void promiscuous(bool onOff=true); virtual void setHighPower(bool onOFF=true); // has to be called after initialize() for RFM69HW virtual void setPowerLevel(uint8_t level); // reduce/increase transmit power level