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)
|
writeBlock(buffer)
|
||||||
file.WriteAt(buffer, int64(block) * 512)
|
file.WriteAt(buffer, int64(block) * 512)
|
||||||
|
file.Sync()
|
||||||
break
|
break
|
||||||
case GetTimeCommand:
|
case GetTimeCommand:
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user