Various improvements to QR scanner

* Improve QR scanner initialization time
* Fix race condition with QR scanner and button spamming
* Don't show black screen before QR scanner has loaded
* Show loading message for QR scanner
This commit is contained in:
2018-07-26 22:02:54 +03:00
parent 09de17729b
commit d3e1b746cd
3 changed files with 8 additions and 2 deletions

View File

@@ -449,9 +449,11 @@ int main(void)
else if(!qr_mode && !preview_mode && kDown & KEY_R) //toggle QR mode
{
enable_qr:
draw_base_interface();
draw_text_center(GFX_TOP, 100, 0.5f, 0.6f, 0.6f, colors[COLOR_WHITE], "Loading QR Scanner...");
end_frame();
if(R_SUCCEEDED(camInit()))
{
camExit();
u32 out;
ACU_GetWifiStatus(&out);
if(out)