From 7012d24b532a4996cfe27fdea40b4209d608a1a7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 26 Sep 2017 17:33:25 -0400 Subject: Decreased time Wii waits for GBA to calculate hashes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 3000µs has been consistently safe in my tests. 2000µs caused incorrect hashes to be read by the Wii, and 1000µs caused segfaults. --- source/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/main.c b/source/main.c index 03379d5..316ebf7 100644 --- a/source/main.c +++ b/source/main.c @@ -296,7 +296,7 @@ void* extractor(void* userdata) for (u32 i = 0; i < partyCount; i++) { - usleep(6000); + usleep(3000); u32 rawdata[sizeof(struct PokemonIntermediate) / 4]; getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4); @@ -336,13 +336,13 @@ void* extractor(void* userdata) for (int j=0; j<30; j++) { - usleep(6000); + usleep(3000); int isPoke = getMsg(); if (isPoke == 1) { - usleep(6000); + usleep(3000); u32 rawdata[sizeof(struct PokemonIntermediate) / 4]; getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4); -- cgit 1.4.1