lyusupov / SoftRF

:airplane: Multi-functional, compatible DIY general aviation proximity awareness system
GNU General Public License v3.0
756 stars 211 forks source link

Aircraft database not loaded for Badge edition. #155

Closed primaldev closed 6 months ago

primaldev commented 6 months ago

ATTENTION !

Recommended:


Hardware

Lilygo t-echo edition.

Firmware version

1.4

Firmware settings

Describe the bug

If you used a previous version of the firmware, or not using the settings.json, ui->adb will not be set and neither of these functions are executed, resulting the file not to be loaded File: nRF52.cpp Screenshot from 2024-02-13 13-31-49

To Reproduce

Upgrade from a previous version and then add the Aircrafts file ogn.cbd. It will not be loaded. For testing I added ui->adb = DB_OGN; above the line and then it works.

Expected behavior

The value ui->adb should be set to a default value if it's invalid or null. Or a settings.json, pre-config step requirement should be added.

lyusupov commented 6 months ago

Resolution: invalid