mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
increased arduino period
This commit is contained in:
parent
19039cd189
commit
54356bc767
@ -77,7 +77,7 @@ class UsbKeyboard {
|
|||||||
void periodic() {
|
void periodic() {
|
||||||
# ifdef HID_USB_CHECK_ENDPOINT
|
# ifdef HID_USB_CHECK_ENDPOINT
|
||||||
static unsigned long prev_ts = 0;
|
static unsigned long prev_ts = 0;
|
||||||
if (is_micros_timed_out(prev_ts, 10000)) {
|
if (is_micros_timed_out(prev_ts, 50000)) {
|
||||||
static bool prev_online = true;
|
static bool prev_online = true;
|
||||||
bool online = !getOfflineAs(1);
|
bool online = !getOfflineAs(1);
|
||||||
if (!_sent || (online && !prev_online)) {
|
if (!_sent || (online && !prev_online)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user