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

Fix board config #231

Closed mdiepart closed 1 year ago

mdiepart commented 1 year ago

I tried updating the dependencies. I discovered that the boardconfig functions to find the current board have bugs.

  1. The LoRa32 V2 board does not have a power management chip
  2. If you do not call Wire.end() (or SPI.end() ) after trying a board, the next calls to Wire.begin() (or SPI.begin() ) might not update the selected pins and thus, the function will not be able to properly regognise boards.
mdiepart commented 1 year ago

My bad, it seems that the oldest versions of Wire and SPI does not have an "end()" function and successive calls to "begin()" work as expected.

peterus commented 1 year ago

@mdiepart do you know if we need this for the latest esp32 platform? I did't check this now.