fix: account for lateness in RTC scheduler event

This commit is contained in:
2022-09-17 09:07:31 -03:00
parent 12c138364d
commit a2e702c366
2 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ pub const Scheduler = struct {
if (device.kind != .Rtc or device.ptr == null) return;
const clock = @ptrCast(*Clock, @alignCast(@alignOf(*Clock), device.ptr.?));
clock.updateTime();
clock.updateTime(late);
},
.FrameSequencer => cpu.bus.apu.tickFrameSequencer(late),
.SampleAudio => cpu.bus.apu.sampleAudio(late),