X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/f59c53a580e2a77c02c7531751e4f7b466ec9987..e54519e85b06a8c570abbed178f94be093e0d910:/firmware/main.c?ds=sidebyside diff --git a/firmware/main.c b/firmware/main.c index 1b70c71..a029169 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -374,13 +374,13 @@ int __attribute__((noreturn)) main(void) } } #endif - if (stayinloader > 0x04) { + if (stayinloader > 0x10) { if (!bootLoaderCondition()) { - stayinloader-=0x04; + stayinloader-=0x10; } } else { if (bootLoaderCondition()) { - stayinloader &= 0x01; + if (stayinloader > 1) stayinloader-=2; } }