Skip to content

Commit 5c624e7

Browse files
committed
add a flush after every PDDB write
uncommitted data will lead to corruption later on
1 parent c91837c commit 5c624e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emulation/peripherals/MXIC_MX66UM1G45G.cs

+1
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ private void WriteToMemory(byte val)
692692
tmp_byte[0] = val;
693693
InternalBackingFile.Seek(position, SeekOrigin.Begin);
694694
InternalBackingFile.Write(tmp_byte, 0, 1);
695+
InternalBackingFile.Flush();
695696
}
696697
}
697698

0 commit comments

Comments
 (0)