divide ticks in OneShot

This commit is contained in:
Alex 2022-10-25 04:28:45 +03:00
parent af3193d782
commit 9eaefb6d6c
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -293,7 +293,7 @@ namespace APIC
timer.Vector = Vector;
timer.TimerMode = 0;
this->lapic->Write(APIC_TDCR, 0x0);
this->lapic->Write(APIC_TICR, Ticks * Miliseconds);
this->lapic->Write(APIC_TICR, (Ticks / 10) * Miliseconds);
this->lapic->Write(APIC_TIMER, timer.raw);
}