Merge pull request #58 from nfi/flash-fix

Corrected flash emergency exit check
This commit is contained in:
Joakim Eriksson 2022-05-18 16:37:04 +02:00 committed by GitHub
commit cf48bd1880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ public class Flash extends IOUnit {
break;
case FCTL3:
if ((statusreg & EMEX) == 0 && (regdata & EMEX) == 1) {
if ((statusreg & EMEX) == 0 && (regdata & EMEX) != 0) {
triggerEmergencyExit();
}