Use asynchronous I/O for Card access

This commit is contained in:
Jack Andersen
2018-02-05 23:34:01 -10:00
committed by Phillip Stephens
parent 1ae9444fe8
commit 83bf0a47d7
7 changed files with 544 additions and 292 deletions

View File

@@ -23,9 +23,9 @@ int main()
mc.setCanMove(f, true);
kabufuda::CardStat stat = {};
mc.setStatus(f, stat);
mc.write(f, "Test\0", strlen("Test") + 1);
mc.asyncWrite(f, "Test\0", strlen("Test") + 1);
mc.seek(f, 32, kabufuda::SeekOrigin::Begin);
mc.write(f, "Test\0", strlen("Test") + 1);
mc.asyncWrite(f, "Test\0", strlen("Test") + 1);
}
return 0;
}