diff options
author | phk <phk@FreeBSD.org> | 2004-05-03 11:41:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-05-03 11:41:25 +0000 |
commit | 978577176877b95751545d834ac6f10bdad0bc71 (patch) | |
tree | f99cbaabb1472d33f71b07b048303a46f65947f0 /sys/dev/led | |
parent | fb124fc06a8591878da5e3841152b04c084ca995 (diff) | |
download | FreeBSD-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.c | 1 |
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; |