瀏覽代碼

T3 - Bug in PINC

Reading wrong register for one bit...
main
Kurt Eckhardt 5 年之前
父節點
當前提交
d28e889454
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      teensy3/avr_emulation.h

+ 1
- 1
teensy3/avr_emulation.h 查看文件

@@ -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…
取消
儲存