summaryrefslogtreecommitdiffstats
path: root/sys/dev/led
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-05-03 11:41:25 +0000
committerphk <phk@FreeBSD.org>2004-05-03 11:41:25 +0000
commit978577176877b95751545d834ac6f10bdad0bc71 (patch)
treef99cbaabb1472d33f71b07b048303a46f65947f0 /sys/dev/led
parentfb124fc06a8591878da5e3841152b04c084ca995 (diff)
downloadFreeBSD-src-978577176877b95751545d834ac6f10bdad0bc71.zip
FreeBSD-src-978577176877b95751545d834ac6f10bdad0bc71.tar.gz
Fix off by one error.
Diffstat (limited to 'sys/dev/led')
-rw-r--r--sys/dev/led/led.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c
index 5e93e3b..5160a05 100644
--- a/sys/dev/led/led.c
+++ b/sys/dev/led/led.c
@@ -61,6 +61,7 @@ led_timeout(void *p)
sc->func(sc->private, 1);
}
sc->count = *sc->ptr & 0xf;
+ sc->count--;
sc->ptr++;
if (*sc->ptr == '\0')
sc->ptr = sc->str;
OpenPOWER on IntegriCloud