Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong australian frequencies #42

Open
AtoLrn opened this issue Jun 14, 2023 · 0 comments
Open

Wrong australian frequencies #42

AtoLrn opened this issue Jun 14, 2023 · 0 comments

Comments

@AtoLrn
Copy link

AtoLrn commented Jun 14, 2023

There is a problem in the comment and in the order of the frequencies for AS920

The comment is not right for the calculation and so, the order neither.

The fix could be this one:

#ifdef AS920
const unsigned char PROGMEM TinyLoRa::LoRa_Frequency[8][3] = {
    {0xE6, 0x80,
     0x27} // Channel 0 922.000 MHz / 61.035 Hz = 15106087 = 0xE68027
    {0xE6, 0x8C,
     0xF3}, // Channel 1 922.200 MHz / 61.035 Hz = 15109363 = 0xE68CF3
    {0xE6, 0x99,
     0xC0}, // Channel 2 922.400 MHz / 61.035 Hz = 15112640 = 0xE699C0
    {0xE6, 0xA6,
     0x8D}, // Channel 3 922.600 MHz / 61.035 Hz = 15115917 = 0xE6A68D
    {0xE6, 0xB3,
     0x5A}, // Channel 4 922.800 MHz / 61.035 Hz = 15119194 = 0xE6B35A
    {0xE6, 0xC0,
     0x27}, // Channel 5 923.000 MHz / 61.035 Hz = 15122471 = 0xE6C027
    {0xE6, 0xCC,
     0xF4}, // Channel 6 923.200 MHz / 61.035 Hz = 15125748 = 0xE6CCF4
    {0xE6, 0xD9,
     0xC0}, // Channel 7 923.400 MHz / 61.035 Hz = 15129024 = 0xE6D9C0
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant