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

Fix board config #231

Merged
merged 4 commits into from
Jan 20, 2023
Merged

Fix board config #231

merged 4 commits into from
Jan 20, 2023

Conversation

mdiepart
Copy link
Contributor

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.

When checking for the board, close the communication devices. If we do not do that, successive calls to begin will not configure the pins properly and thus the board check might fail...
@mdiepart
Copy link
Contributor Author

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 peterus merged commit a19034e into lora-aprs:master Jan 20, 2023
@peterus
Copy link
Member

peterus commented Jan 21, 2023

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

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

Successfully merging this pull request may close these issues.

None yet

2 participants