From 298ecbbfa699575e9f05afab324595edec01212c Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 16 Feb 2021 18:36:43 +0000 Subject: [PATCH] Poll battery sensors less frequently. The previous period was quite arbitrary and inspired by other USB drivers. --- sys/dev/usb/uhidpp.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1