Browse Source

T3 - Bug in PINC

Reading wrong register for one bit...
main
Kurt Eckhardt 5 years ago
parent
commit
d28e889454
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/avr_emulation.h

+ 1
- 1
teensy3/avr_emulation.h View File

@@ -602,7 +602,7 @@ public:
int ret = 0;
if (digitalReadFast(14)) ret |= (1<<0);
if (digitalReadFast(15)) ret |= (1<<1);
if (digitalReadFast(15)) ret |= (1<<2);
if (digitalReadFast(16)) ret |= (1<<2);
if (digitalReadFast(17)) ret |= (1<<3);
if (digitalReadFast(18)) ret |= (1<<4);
if (digitalReadFast(19)) ret |= (1<<5);

Loading…
Cancel
Save