Corrected flash emergency exit check

This commit is contained in:
Niclas Finne 2022-05-18 01:05:41 +02:00
parent 18e2a66906
commit a840a8a3ca
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();
}