fix(sticky keys): use correct timestamp when clearing sticky key in timer

This commit is contained in:
Okke Formsma 2020-11-30 21:46:39 +01:00 committed by Pete Johanson
parent 37946ff57b
commit 2ba16c2f3d
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ void behavior_sticky_key_timer_handler(struct k_work *item) {
if (sticky_key->timer_is_cancelled) {
sticky_key->timer_is_cancelled = false;
} else {
release_sticky_key_behavior(sticky_key, k_uptime_get());
release_sticky_key_behavior(sticky_key, sticky_key->release_at);
clear_sticky_key(sticky_key);
}
}