increased arduino period

This commit is contained in:
Devaev Maxim 2021-04-23 15:55:51 +03:00
parent 19039cd189
commit 54356bc767

View File

@ -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)) {