Skip to content
Snippets Groups Projects
Commit 33a7a24b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Synchronize blink rate to real Model B

Keyop provided a video of flashing stuff for me.  This now
synchronizes with that video.  Can't get any better than that.
parent ffa6a703
Branches
Tags
No related merge requests found
Pipeline #7970 passed
...@@ -1000,18 +1000,19 @@ static void blinker_thread(void *data) ...@@ -1000,18 +1000,19 @@ static void blinker_thread(void *data)
else { else {
vstat.curs_blink=TRUE; vstat.curs_blink=TRUE;
} }
next_cursor = now + 333; // Timings derived from Keyops Model B
next_cursor = now + 314;
curs_changed = (curs_changed != cursor_visible_locked()); curs_changed = (curs_changed != cursor_visible_locked());
if (next_blink < now) { if (next_blink < now) {
if (vstat.blink) { if (vstat.blink) {
vstat.blink=FALSE; vstat.blink=FALSE;
vstat.curs_blink = TRUE; vstat.curs_blink = TRUE;
next_blink = now + 1000; next_blink = now + 942;
} }
else { else {
vstat.blink=TRUE; vstat.blink=TRUE;
vstat.curs_blink = FALSE; vstat.curs_blink = FALSE;
next_blink = now + 333; next_blink = now + 314;
} }
blink_changed = 1; blink_changed = 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment