Skip to content

Two pins get set on Pico Board#285

Merged
DocMoebiuz merged 4 commits intoMobiFlight:mainfrom
elral:two_pins_get_set
Nov 23, 2023
Merged

Two pins get set on Pico Board#285
DocMoebiuz merged 4 commits intoMobiFlight:mainfrom
elral:two_pins_get_set

Conversation

@elral
Copy link
Collaborator

@elral elral commented Nov 22, 2023

Description of changes

On the Pico two pins get set at the same time if both pins are configured as output and the difference of the pin numbers are 16.

Moving the initialization of the pin from the class MFOutput() to the function which calls the initialization Output::Add() solves this issue.
For now it is unclear why this change fixes it. More investigation has to be done.
The change is only done for the Pico and not for the other boards.

Additionally changes are implemented to fix issue #284 to avoid merge errors when both PR gets merged. An additional comment will be given in the upcoming PR.

Fixes #283

@elral elral requested a review from DocMoebiuz as a code owner November 22, 2023 07:54
@github-actions
Copy link

Firmware for this pull request:
Firmware.zip

@github-actions
Copy link

Firmware for this pull request:
Firmware.zip

@DocMoebiuz DocMoebiuz added the bug Something isn't working label Nov 23, 2023
Copy link
Collaborator

@DocMoebiuz DocMoebiuz left a comment

Choose a reason for hiding this comment

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

Nice!

@DocMoebiuz DocMoebiuz merged commit e7ee741 into MobiFlight:main Nov 23, 2023
@elral elral deleted the two_pins_get_set branch November 23, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two Pins get set at the same time on Pico

2 participants