G4lile0 / tinyGS

📡 Open Ground Station Network 🛰
GNU General Public License v3.0
922 stars 175 forks source link

E32-900M30S da error cuando se selecciona 900Mhz #162

Closed jubamo closed 4 months ago

jubamo commented 2 years ago

https://github.com/G4lile0/tinyGS/blob/beta/tinyGS/src/Mqtt/MQTT_Client.cpp

linea 327 en adelante:

bool isValidFrequency(uint8_t radio, float f) { return !((radio == 1 && (f < 137 || f > 525)) || // Donde dice: (radio == 2 && (f < 137 || f > 525)) || //Debe decir: (radio == 2 && (f < 137 || f > 1020)) ||

    (radio == 5 && (f < 410 || f > 810)) ||
    (radio == 6 && (f < 150 || f > 960)) ||
    (radio == 8 && (f < 2400|| f > 2500)));

} radio 2, es SX1276 y habitualmente se utiliza para la banda de 900Mhz. Da error: ERROR: Wrong frequency. Ignoring.