Skip to content

Commit

Permalink
quick fix of a typo in enum
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Sep 23, 2024
1 parent a5f3705 commit 95b59da
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion software/firmware/source/SoftRF/src/driver/radio/almic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static void sx12xx_setvars()

if (RF_FreqPlan.Bandwidth == RF_RX_BANDWIDTH_SS_250KHZ) {
LMIC.rps = setBw(LMIC.rps, BW500);
} else if (RF_FreqPlan.Bandwidth == RF_RX_BANDWIDTH_SS_75KHZ) {
} else if (RF_FreqPlan.Bandwidth == RF_RX_BANDWIDTH_SS_62KHZ) {
LMIC.rps = setBw(LMIC.rps, BW125);
}

Expand Down
4 changes: 2 additions & 2 deletions software/firmware/source/SoftRF/src/driver/radio/radiolib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static void lr11xx_setup()
case RF_RX_BANDWIDTH_SS_250KHZ:
bw = 500.0; /* BW_500 */
break;
case RF_RX_BANDWIDTH_SS_75KHZ:
case RF_RX_BANDWIDTH_SS_62KHZ:
bw = 125.0; /* BW_125 */
break;
case RF_RX_BANDWIDTH_SS_125KHZ:
Expand Down Expand Up @@ -493,7 +493,7 @@ static void lr11xx_setup()
case RF_RX_BANDWIDTH_SS_50KHZ:
bw = 117.3;
break;
case RF_RX_BANDWIDTH_SS_75KHZ:
case RF_RX_BANDWIDTH_SS_62KHZ:
case RF_RX_BANDWIDTH_SS_100KHZ:
bw = 234.3;
break;
Expand Down
4 changes: 2 additions & 2 deletions software/firmware/source/libraries/OGN/freqplan.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class FreqPlan
{ BaseFreq=866200000; Bandwidth = RF_RX_BANDWIDTH_SS_125KHZ; } // BW250
break;
case RF_BAND_IL:
{ BaseFreq=918500000; Bandwidth = RF_RX_BANDWIDTH_SS_75KHZ; } // BW125
{ BaseFreq=918500000; Bandwidth = RF_RX_BANDWIDTH_SS_62KHZ; } // BW125
break;
case RF_BAND_KR:
{ BaseFreq=923200000; Bandwidth = RF_RX_BANDWIDTH_SS_75KHZ; } // BW125
{ BaseFreq=923200000; Bandwidth = RF_RX_BANDWIDTH_SS_62KHZ; } // BW125
break;
case RF_BAND_EU:
case RF_BAND_RU:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ enum
enum
{
RF_RX_BANDWIDTH_SS_50KHZ,
RF_RX_BANDWIDTH_SS_75KHZ,
RF_RX_BANDWIDTH_SS_62KHZ,
RF_RX_BANDWIDTH_SS_100KHZ,
RF_RX_BANDWIDTH_SS_125KHZ,
RF_RX_BANDWIDTH_SS_166KHZ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ enum
enum
{
RF_RX_BANDWIDTH_SS_50KHZ,
RF_RX_BANDWIDTH_SS_75KHZ,
RF_RX_BANDWIDTH_SS_62KHZ,
RF_RX_BANDWIDTH_SS_100KHZ,
RF_RX_BANDWIDTH_SS_125KHZ,
RF_RX_BANDWIDTH_SS_166KHZ,
Expand Down

0 comments on commit 95b59da

Please sign in to comment.