From 33a7a24b4a9de16a671e71715983ddf985fbd414 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Wed, 22 Jan 2025 19:21:44 -0500
Subject: [PATCH] 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.
---
 src/conio/bitmap_con.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index 87cca35715..e8f4628521 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -1000,18 +1000,19 @@ static void blinker_thread(void *data)
 					else {
 						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());
 					if (next_blink < now) {
 						if (vstat.blink) {
 							vstat.blink=FALSE;
 							vstat.curs_blink = TRUE;
-							next_blink = now + 1000;
+							next_blink = now + 942;
 						}
 						else {
 							vstat.blink=TRUE;
 							vstat.curs_blink = FALSE;
-							next_blink = now + 333;
+							next_blink = now + 314;
 						}
 						blink_changed = 1;
 					}
-- 
GitLab