From: anton Date: Tue, 3 Jan 2023 15:52:02 +0000 (+0000) Subject: Poll battery sensors less frequently. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=82beb9e3c537d9efc41da9bf8f91990ef050c219;p=openbsd Poll battery sensors less frequently. --- diff --git a/sys/dev/usb/uhidpp.c b/sys/dev/usb/uhidpp.c index f8a3680990a..f9bda84eb43 100644 --- a/sys/dev/usb/uhidpp.c +++ b/sys/dev/usb/uhidpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidpp.c,v 1.41 2023/01/03 15:51:40 anton Exp $ */ +/* $OpenBSD: uhidpp.c,v 1.42 2023/01/03 15:52:02 anton Exp $ */ /* * Copyright (c) 2021 Anton Lindqvist @@ -668,7 +668,7 @@ uhidpp_device_connect(struct uhidpp_softc *sc, struct uhidpp_device *dev) */ KASSERT(sc->sc_senstsk == NULL); mtx_leave(&sc->sc_mtx); - sc->sc_senstsk = sensor_task_register(sc, uhidpp_refresh, 30); + sc->sc_senstsk = sensor_task_register(sc, uhidpp_refresh, 60); mtx_enter(&sc->sc_mtx); }