From 82beb9e3c537d9efc41da9bf8f91990ef050c219 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 3 Jan 2023 15:52:02 +0000 Subject: [PATCH] Poll battery sensors less frequently. --- 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 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); } -- 2.20.1