summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2021-02-16 18:36:43 +0000
committeranton <anton@openbsd.org>2021-02-16 18:36:43 +0000
commit298ecbbfa699575e9f05afab324595edec01212c (patch)
treecb4f4947fb688e49afba70e3fe3937e3be0a8777 /sys/dev/usb
parentTrim uhidpp_device_features() by extracting two pure protocol functions. (diff)
downloadwireguard-openbsd-298ecbbfa699575e9f05afab324595edec01212c.tar.xz
wireguard-openbsd-298ecbbfa699575e9f05afab324595edec01212c.zip
Poll battery sensors less frequently. The previous period was quite
arbitrary and inspired by other USB drivers.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uhidpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhidpp.c b/sys/dev/usb/uhidpp.c
index 4558101f485..b24fa47f403 100644
--- a/sys/dev/usb/uhidpp.c
+++ b/sys/dev/usb/uhidpp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidpp.c,v 1.11 2021/02/16 18:35:26 anton Exp $ */
+/* $OpenBSD: uhidpp.c,v 1.12 2021/02/16 18:36:43 anton Exp $ */
/*
* Copyright (c) 2021 Anton Lindqvist <anton@openbsd.org>
@@ -626,7 +626,7 @@ uhidpp_device_connect(struct uhidpp_softc *sc, struct uhidpp_device *dev)
sensor_attach(&sc->sc_sensdev, sens);
if (sc->sc_senstsk == NULL)
- sc->sc_senstsk = sensor_task_register(sc, uhidpp_refresh, 6);
+ sc->sc_senstsk = sensor_task_register(sc, uhidpp_refresh, 30);
dev->d_connected = 1;
uhidpp_device_refresh(sc, dev);