Skip to content

Commit 02b721b

Browse files
committed
Update VirtButton.h
1 parent 6faaac2 commit 02b721b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/VirtButton.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ class VirtButton {
311311
clr_bf(EB_REL | EB_EHLD);
312312
} else if (clicks) { // есть клики
313313
#ifdef EB_CLICK_TIME
314-
if (read_bf(EB_STP) || deb > (uint16_t)EB_CLICK_T) set_bf(EB_CLKS_R); // ждём EB_CLICK_TIME
314+
if (read_bf(EB_HLD | EB_STP) || deb > (uint16_t)EB_CLICK_T) set_bf(EB_CLKS_R); // ждём EB_CLICK_TIME
315315
#else
316-
if (read_bf(EB_STP) || deb > (uint16_t)(EB_CLICK_T << EB_SHIFT)) set_bf(EB_CLKS_R); // ждём EB_CLICK_TIME
316+
if (read_bf(EB_HLD | EB_STP) || deb > (uint16_t)(EB_CLICK_T << EB_SHIFT)) set_bf(EB_CLKS_R); // ждём EB_CLICK_TIME
317317
#endif
318318
} else if (read_bf(EB_BUS)) {
319319
clr_bf(EB_HLD | EB_STP | EB_BUS);

0 commit comments

Comments
 (0)