mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add a flush after every PDDB write
uncommitted data will lead to corruption later on
This commit is contained in:
parent
c91837c10b
commit
5c624e7e52
1 changed files with 1 additions and 0 deletions
|
|
@ -692,6 +692,7 @@ namespace Antmicro.Renode.Peripherals.SPI.Betrusted
|
||||||
tmp_byte[0] = val;
|
tmp_byte[0] = val;
|
||||||
InternalBackingFile.Seek(position, SeekOrigin.Begin);
|
InternalBackingFile.Seek(position, SeekOrigin.Begin);
|
||||||
InternalBackingFile.Write(tmp_byte, 0, 1);
|
InternalBackingFile.Write(tmp_byte, 0, 1);
|
||||||
|
InternalBackingFile.Flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue