about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-26 17:33:25 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-26 17:33:25 -0400
commit7012d24b532a4996cfe27fdea40b4209d608a1a7 (patch)
tree4c9086fc8fa438a05abf985e080f87f63af68185
parentbb02875e92689198447863a7a901bbe42daae316 (diff)
downloadgen3uploader-7012d24b532a4996cfe27fdea40b4209d608a1a7.tar.gz
gen3uploader-7012d24b532a4996cfe27fdea40b4209d608a1a7.tar.bz2
gen3uploader-7012d24b532a4996cfe27fdea40b4209d608a1a7.zip
Decreased time Wii waits for GBA to calculate hashes
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.
-rw-r--r--source/main.c6
1 files 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)
296 296
297 for (u32 i = 0; i < partyCount; i++) 297 for (u32 i = 0; i < partyCount; i++)
298 { 298 {
299 usleep(6000); 299 usleep(3000);
300 300
301 u32 rawdata[sizeof(struct PokemonIntermediate) / 4]; 301 u32 rawdata[sizeof(struct PokemonIntermediate) / 4];
302 getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4); 302 getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4);
@@ -336,13 +336,13 @@ void* extractor(void* userdata)
336 336
337 for (int j=0; j<30; j++) 337 for (int j=0; j<30; j++)
338 { 338 {
339 usleep(6000); 339 usleep(3000);
340 340
341 int isPoke = getMsg(); 341 int isPoke = getMsg();
342 342
343 if (isPoke == 1) 343 if (isPoke == 1)
344 { 344 {
345 usleep(6000); 345 usleep(3000);
346 346
347 u32 rawdata[sizeof(struct PokemonIntermediate) / 4]; 347 u32 rawdata[sizeof(struct PokemonIntermediate) / 4];
348 getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4); 348 getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4);