LR1121 and other disable FREQ check #20

Open
opened 2026-10-05 05:59:02 +02:00 by adam · 0 comments
Owner

https://vscode.dev/github/Genaker/LoraSA/blob/rtl-sdr/.pio/libdeps/lilygo-T3S3-v1-2-lr1121-2400/RadioLib/src/modules/LR11x0/LR1120.cpp#L56

Screenshot 2025-01-10 at 4 28 39 PM

'''
int16_t LR1120::setFrequency(float freq) { return (this->setFrequency(freq, false)); }

int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band)
{
/**
if(!(((freq >= 150.0) && (freq <= 960.0)) ||
((freq >= 1900.0) && (freq <= 2200.0)) ||
((freq >= 2400.0) && (freq <= 2500.0)))) {
return(RADIOLIB_ERR_INVALID_FREQUENCY);
}**/

// check if we need to recalibrate image
int16_t state;
if (!skipCalibration &&

'''

And also
https://vscode.dev/github/Genaker/LoraSA/blob/rtl-sdr/.pio/libdeps/lilygo-T3S3-v1-2-lr1121-2400/RadioLib/src/BuildOpt.h#L52
'''
/*

  • Comment to disable parameter range checking
  • RadioLib will check provided parameters (such as frequency) against limits determined
  • by the device manufacturer. It is highly advised to keep this macro defined, removing
  • it will allow invalid values to be set, possibly leading to bricked module and/or
  • program crashing. Note: Enabled by default.
    */
    #if !defined(RADIOLIB_CHECK_PARAMS)
    // #define RADIOLIB_CHECK_PARAMS (1)
    #endif
    '''
image
https://vscode.dev/github/Genaker/LoraSA/blob/rtl-sdr/.pio/libdeps/lilygo-T3S3-v1-2-lr1121-2400/RadioLib/src/modules/LR11x0/LR1120.cpp#L56 <img width="785" alt="Screenshot 2025-01-10 at 4 28 39 PM" src="https://github.com/user-attachments/assets/46b223aa-42ce-4743-8761-f3444e0649fd" /> ''' int16_t LR1120::setFrequency(float freq) { return (this->setFrequency(freq, false)); } int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band) { /** if(!(((freq >= 150.0) && (freq <= 960.0)) || ((freq >= 1900.0) && (freq <= 2200.0)) || ((freq >= 2400.0) && (freq <= 2500.0)))) { return(RADIOLIB_ERR_INVALID_FREQUENCY); }**/ // check if we need to recalibrate image int16_t state; if (!skipCalibration && ''' And also https://vscode.dev/github/Genaker/LoraSA/blob/rtl-sdr/.pio/libdeps/lilygo-T3S3-v1-2-lr1121-2400/RadioLib/src/BuildOpt.h#L52 ''' /* * Comment to disable parameter range checking * RadioLib will check provided parameters (such as frequency) against limits determined * by the device manufacturer. It is highly advised to keep this macro defined, removing * it will allow invalid values to be set, possibly leading to bricked module and/or * program crashing. Note: Enabled by default. */ #if !defined(RADIOLIB_CHECK_PARAMS) // #define RADIOLIB_CHECK_PARAMS (1) #endif ''' <img width="778" alt="image" src="https://github.com/user-attachments/assets/d193b8e6-adf8-4dda-bdbf-44d71703c2b1" /> <!-- github-sync-id:2781466075 -->
adam changed title from LR1121 and other disable FREQ check to LR1121 and other disable FREQ check 2026-10-27 16:43:57 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/LoraSA#20