Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes2wii.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-01-24 11:04:53 +0400
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-01-24 11:04:53 +0400
commite6c9d87533ed9960955e5db78afbb3a81ee82c3e (patch)
tree6de0f43bb90f2bbcb7561c992a9e681682f08580 /main.c
parentc7c73662c97f652a313f4ab9a937205192b7083c (diff)
N64 fix
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 682e679..5fcf45e 100644
--- a/main.c
+++ b/main.c
@@ -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;
}