lora-aprs / LoRa_APRS_iGate

This is a LoRa APRS iGate/Digi based on an ESP32
https://www.lora-aprs.info
MIT License
348 stars 112 forks source link

Automatic board detection fails without OLED display #154

Open kepesak opened 2 years ago

kepesak commented 2 years ago

On my "ETH_BOARD", autodetection does not detect board type. "LoRa_APRS_iGate.cpp 68 : Board config not set and search failed!" I don't have OLED display. I think the board finder works and finds boards based on display, but not modem.

Looking at SPI signals with logic analyzer, they are erratic and unexpected during board finding.

Probable cause: In BoardFinder.cpp, function checkModemConfig(), the SPI port is being opened but not closed later. I have tried adding SPI.end(); on line 103 and it seems to solve the issue for me. Then, the SPI signals are doing "normal" things during detection. Can you please verify and implement the fix?

Thanks, Martin OK5MP