forked from Apple-2-HW/Apple2-IO-RPi
Add file sync to prevent data loss on power-off
This commit is contained in:
parent
9c0b548aab
commit
860c1c6308
@ -262,6 +262,7 @@ func main() {
|
||||
|
||||
writeBlock(buffer)
|
||||
file.WriteAt(buffer, int64(block) * 512)
|
||||
file.Sync()
|
||||
break
|
||||
case GetTimeCommand:
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user