From fd7d0cc4e5b582d37f54a76eb1d88fdce8af893e Mon Sep 17 00:00:00 2001 From: LowPowerLab Date: Sun, 27 Oct 2013 19:53:02 -0400 Subject: [PATCH] Fix some warnings --- RFM69.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RFM69.cpp b/RFM69.cpp index f34901f..8710923 100644 --- a/RFM69.cpp +++ b/RFM69.cpp @@ -79,6 +79,7 @@ bool RFM69::initialize(byte freqBand, byte nodeID, byte networkID) selfPointer = this; _address = nodeID; + return true; } void RFM69::setFrequency(uint32_t FRF) @@ -332,7 +333,7 @@ void RFM69::writeReg(byte addr, byte value) { select(); SPI.transfer(addr | 0x80); - byte oldregval = SPI.transfer(value); + SPI.transfer(value); unselect(); } @@ -407,4 +408,4 @@ void RFM69::rcCalibration() { writeReg(REG_OSC1, RF_OSC1_RCCAL_START); while ((readReg(REG_OSC1) & RF_OSC1_RCCAL_DONE) == 0x00); -} \ No newline at end of file +}