We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2f29f commit 9c318b6Copy full SHA for 9c318b6
chips/i8255.h
@@ -386,10 +386,10 @@ static uint64_t _i8255_read(i8255_t* ppi, uint64_t pins) {
386
}
387
388
static uint64_t _i8255_write_port_pins(i8255_t* ppi, uint64_t pins) {
389
- if ((ppi->control & I8255_CTRL_A_OUTPUT) == I8255_CTRL_A_OUTPUT) {
+ if ((ppi->control & I8255_CTRL_A) == I8255_CTRL_A_OUTPUT) {
390
I8255_SET_PA(pins, ppi->pa.outp);
391
392
- if ((ppi->control & I8255_CTRL_B_OUTPUT) == I8255_CTRL_B_OUTPUT) {
+ if ((ppi->control & I8255_CTRL_B) == I8255_CTRL_B_OUTPUT) {
393
I8255_SET_PB(pins, ppi->pb.outp);
394
395
if ((ppi->control & I8255_CTRL_CHI) == I8255_CTRL_CHI_OUTPUT) {
0 commit comments