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 Analog Read not working #357

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

elral
Copy link
Collaborator

@elral elral commented Feb 24, 2025

Description of changes

With FW version 3.0.0 analog read is not working anymore.
In this version a new deviceID for analog devices was introduced. This new analog device does not enable the PullUp's for the configured pins to get a linear read in.
During reading the config from flash the number of devices per type is calculated to define the array size for these devices. For devices with deprecated ID's also these one have to be considered. This was not implemented. So only new analog device types are considered, but as the connector does not support this type yet, the number of analog devices is always zero. While adding a device it's checked if the calculatd number get's exceeded. If so, no device gets added.

Fixes #356

@elral elral requested a review from DocMoebiuz as a code owner February 24, 2025 16:20
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@DocMoebiuz DocMoebiuz merged commit fb85dfa into MobiFlight:main Feb 24, 2025
1 check passed
@elral elral deleted the hotfix_analog_read branch February 25, 2025 05:34
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.

Analog Read not working with version 3.0.0
2 participants