Skip to content

Commit 4037386

Browse files
committed
Fix warning
1 parent 6a6e9c3 commit 4037386

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LoRa.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ void LoRaClass::setSpreadingFactor(int sf)
437437
long LoRaClass::getSignalBandwidth()
438438
{
439439
byte bw = (readRegister(REG_MODEM_CONFIG_1) >> 4);
440+
440441
switch (bw) {
441442
case 0: return 7.8E3;
442443
case 1: return 10.4E3;
@@ -449,6 +450,8 @@ long LoRaClass::getSignalBandwidth()
449450
case 8: return 250E3;
450451
case 9: return 500E3;
451452
}
453+
454+
return -1;
452455
}
453456

454457
void LoRaClass::setSignalBandwidth(long sbw)

0 commit comments

Comments
 (0)