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

Add hardware detection. Fix always-open squelch on v2 boards. #205

Merged
merged 5 commits into from
Jan 30, 2025

Conversation

SmittyHalibut
Copy link
Collaborator

@SmittyHalibut SmittyHalibut commented Jan 28, 2025

There was some merge wackiness, but I think it's all good now.

Added detection of hardware version, and made some config changes based on hardware version:

  • Squelch from SA818 moved to GPIO4. This is now properly detected.
  • Adjust volumes for v2.0c, which has a different bias setting for receive audio.

Merging from Main made some weird white-space changes. I did a Ctrl-Shift-P Format Document for C/C++ in VScode to clean up the white space. It changed a few other things too.

@SmittyHalibut SmittyHalibut marked this pull request as ready for review January 28, 2025 02:31
@@ -139,13 +151,34 @@ void tuneTo(float freqTx, float freqRx, int tone, int squelch, String bandwidth)
void setMode(int newMode);
void processTxAudio(uint8_t tempBuffer[], int bytesRead);
void iir_lowpass_reset();
hw_ver_t get_hardware_version();
void reportPhysPttState();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like Arduino doesn't require forward declarations. C/C++ does, so PlatformIO/gcc does. This is here so I could compile the previous commit from @VanceVagell

@VanceVagell VanceVagell merged commit e19539d into VanceVagell:main Jan 30, 2025
4 checks passed
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.

2 participants