From 843509bc4b44a748e10b9257dc8026d0dc528133 Mon Sep 17 00:00:00 2001 From: sago35 Date: Sun, 6 Oct 2024 10:16:27 +0900 Subject: [PATCH] Fix the issue where `time.Tick` was not working properly (#49) --- keyboard.go | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboard.go b/keyboard.go index 62d48d2..133465d 100644 --- a/keyboard.go +++ b/keyboard.go @@ -360,7 +360,6 @@ func (d *Device) Loop(ctx context.Context) error { cont = false continue case <-ticker: - default: } err := d.Tick()