Fix some warnings
This commit is contained in:
parent
759b37b167
commit
fd7d0cc4e5
|
|
@ -79,6 +79,7 @@ bool RFM69::initialize(byte freqBand, byte nodeID, byte networkID)
|
||||||
|
|
||||||
selfPointer = this;
|
selfPointer = this;
|
||||||
_address = nodeID;
|
_address = nodeID;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RFM69::setFrequency(uint32_t FRF)
|
void RFM69::setFrequency(uint32_t FRF)
|
||||||
|
|
@ -332,7 +333,7 @@ void RFM69::writeReg(byte addr, byte value)
|
||||||
{
|
{
|
||||||
select();
|
select();
|
||||||
SPI.transfer(addr | 0x80);
|
SPI.transfer(addr | 0x80);
|
||||||
byte oldregval = SPI.transfer(value);
|
SPI.transfer(value);
|
||||||
unselect();
|
unselect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -407,4 +408,4 @@ void RFM69::rcCalibration()
|
||||||
{
|
{
|
||||||
writeReg(REG_OSC1, RF_OSC1_RCCAL_START);
|
writeReg(REG_OSC1, RF_OSC1_RCCAL_START);
|
||||||
while ((readReg(REG_OSC1) & RF_OSC1_RCCAL_DONE) == 0x00);
|
while ((readReg(REG_OSC1) & RF_OSC1_RCCAL_DONE) == 0x00);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue