From 830c96fc52bed6f4c25eb85535b7bc4a6071b6a8 Mon Sep 17 00:00:00 2001 From: anton Date: Wed, 28 Jul 2021 09:56:54 +0000 Subject: [PATCH] Use a more descriptive name for the raw sensor which reflects the number of battery levels the device can report. --- 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 d2748330f95..c5de0e59d5e 100644 --- a/sys/dev/usb/uhidpp.c +++ b/sys/dev/usb/uhidpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidpp.c,v 1.15 2021/07/28 09:55:58 anton Exp $ */ +/* $OpenBSD: uhidpp.c,v 1.16 2021/07/28 09:56:54 anton Exp $ */ /* * Copyright (c) 2021 Anton Lindqvist @@ -622,7 +622,7 @@ uhidpp_device_connect(struct uhidpp_softc *sc, struct uhidpp_device *dev) sensor_attach(&sc->sc_sensdev, sens); sens = &dev->d_battery.b_sens[1]; - strlcpy(sens->desc, "battery levels", sizeof(sens->desc)); + strlcpy(sens->desc, "number of battery levels", sizeof(sens->desc)); sens->type = SENSOR_INTEGER; sens->value = dev->d_battery.b_nlevels; sensor_attach(&sc->sc_sensdev, sens); -- 2.20.1