Skip to content

Commit

Permalink
Fixed uplink for SF11 and SF12 for AS923 and AS923_2
Browse files Browse the repository at this point in the history
To set low data rate for SF11 and SF12 in AS923 and AS923_2

Signed-off-by: IoTThinks.com <[email protected]>
  • Loading branch information
IoTThinks authored May 26, 2024
1 parent 606b6e3 commit 3d646a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arduino-rfm/RFM95.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static void RFM_change_SF_BW(unsigned char _SF, unsigned char _BW)
RFM_Write(RFM_REG_MODEM_CONFIG2, (_SF << 4) | 0b0100); //SFx CRC On
RFM_Write(RFM_REG_MODEM_CONFIG1,(_BW << 4) | 0x02); //x kHz 4/5 coding rate explicit header mode

#if defined(EU_868) || defined(IN_865)
#if defined(EU_868) || defined(IN_865) || defined(AS_923) || defined(AS_923_2)
if(_SF>10)
RFM_Write(RFM_REG_MODEM_CONFIG3, 0b1100); //Low datarate optimization on AGC auto on
else
Expand Down

0 comments on commit 3d646a1

Please sign in to comment.