summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2021-02-16 18:36:44 +0000
committeranton <anton@cvs.openbsd.org>2021-02-16 18:36:44 +0000
commit17178dfeff5295c6cc4326a61e57958e06e78c2b (patch)
treed98905e57797566f98619b061c78c120a36634e7 /sys/dev/usb
parentce0d64192abfd7267381fe703d7c055c2a411bd1 (diff)
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);