No0ne / ps2pico

USB keyboard to PS/2 / AT / XT interface converter using a Raspberry Pi Pico
MIT License
98 stars 19 forks source link

Fix parity check in ps2_receive() #2

Closed vovams closed 11 months ago

vovams commented 11 months ago

The old condition parity != fifo & 0x100, which was actually interpreted as (parity != fifo) & 0x100, was always false. Furthermore, if the condition was written as intended (parity != (fifo & 0x100)), it would have been always true when parity == 1.

No0ne commented 11 months ago

Thanks for that! Will be in the new release shortly.