Changeset 5903:cac26a3b3cb0 in roaraudio


Ignore:
Timestamp:
04/21/13 01:46:55 (6 years ago)
Author:
phi
Branch:
default
Message:

invert input ports as they are inverted on hardware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/universal/piface.c

    r5902 r5903  
    162162 
    163163static unsigned char piface__read_input(void) { 
    164  return state->buffer_input = piface__transfer(SPI_READ_CMD, INPUT_PORT, 0xFF); 
     164 return state->buffer_input = piface__transfer(SPI_READ_CMD, INPUT_PORT, 0xFF) ^ 0xFF; 
    165165} 
    166166 
Note: See TracChangeset for help on using the changeset viewer.