Fix off by one error.
This commit is contained in:
parent
b38dafc010
commit
675d58e870
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user