Sparky2 receiver port inverter controlled by wrong MCU pin

Description

introduced a bug where the wrong MCU pin is controlled for toggling the input inversion. This inverted the serial signal when it should not be inverted.
ibus reception and possibly other serial receiver protocols where not working.

PC4 was controlled, but according to the schematic, PC6 is connected to the xor port.
PC4 is actually connected to the gyro interrupt.

This bug explains another issue I saw from time to time. After a restart of the Sparky2 board, gyro and accelerometer graphs remained locked at 0. Making the board unusable for flight.

Patch follows.

Environment

Sparky 2 with ibus receiver connected to the receiver port

Assignee

Jan NIJS

Reporter

Jan NIJS

Labels

Components

Fix versions

Affects versions

Priority

Medium
Configure