diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-01-24 11:04:53 +0400 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2014-01-24 11:04:53 +0400 |
commit | e6c9d87533ed9960955e5db78afbb3a81ee82c3e (patch) | |
tree | 6de0f43bb90f2bbcb7561c992a9e681682f08580 /main.c | |
parent | c7c73662c97f652a313f4ab9a937205192b7083c (diff) |
N64 fix
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -85,9 +85,9 @@ int get_n64_gamepad(uint8_t* data) for (bit = 0; bit < 8; bit++) { TCNT0 = 0; - while (!N64SIGNAL); if (TCNT0 >= 0xF0) return 0; + while (!N64SIGNAL) if (TCNT0 >= 0xF0) return 0; TCNT0 = 0; - while(N64SIGNAL); if (TCNT0 >= 0xF0) return 0; + while(N64SIGNAL) if (TCNT0 >= 0xF0) return 0; data[b] = data[b]<<1; if (TCNT0 < 0x24 * F_CPU / 20000000UL) data[b] |= 1; } |