From: anton Date: Tue, 16 Feb 2021 18:36:43 +0000 (+0000) Subject: Poll battery sensors less frequently. The previous period was quite X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=298ecbbfa699575e9f05afab324595edec01212c;p=openbsd Poll battery sensors less frequently. The previous period was quite arbitrary and inspired by other USB drivers. --- 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);