Skip to content

Conversation

@tscheskn
Copy link

When using alternative Pin Mappings a Mask of 0xN00 is used to get the ALT_N mapping of a pin. This increases the pin number above 256. Therefore the uint8_t that is used in ServoPin_t is to small.

e.g. servo.attach(PB0 | 0x100) would fail, also the wrong pin number would be given to HardwareTimer.setMode() later.

This change has been tested on a Nucleo F446RE with the ALT_1 Mappings on Pins PA1(Timer5), PB0(Timer3), and PB8(Timer4).

…n Mappings

e.g. servo.attach(PB0 | ALT1) would fail, also the wrong pin number would be given to HardwareTimer.setMode() later
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.

1 participant