8000 Update sx1276.c · fsaf11/ESP32-micropython-lora@95e8c39 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95e8c39

Browse files
authored
Update sx1276.c
1 parent bba90e4 commit 95e8c39

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

drivers/sx127x/sx1276/sx1276.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -374,27 +374,6 @@ static void RxChainCalibration( void )
374374
SX1276SetChannel( initialFreq );
375375
}
376376

377-
/*!
378-
* Returns the known FSK bandwidth registers value
379-
*
380-
* \param [IN] bandwidth Bandwidth value in Hz
381-
* \retval regValue Bandwidth register value.
382-
*/
383-
static uint8_t GetFskBandwidthRegValue( uint32_t bandwidth )
384-
{
385-
uint8_t i;
386-
387-
for( i = 0; i < ( sizeof( FskBandwidths ) / sizeof( FskBandwidth_t ) ) - 1; i++ )
388-
{
389-
if( ( bandwidth >= FskBandwidths[i].bandwidth ) && ( bandwidth < FskBandwidths[i + 1].bandwidth ) )
390-
{
391-
return FskBandwidths[i].RegValue;
392-
}
393-
}
394-
// ERROR: Value not found
395-
while( 1 );
396-
}
397-
398377
IRAM_ATTR void SX1276SetRxConfig( RadioModems_t modem, uint32_t bandwidth,
399378
uint32_t datarate, uint8_t coderate,
400379
uint32_t bandwidthAfc, uint16_t preambleLen,

0 commit comments

Comments
 (0)
0