Initially, we were using `uint8_t` as the type for led indexes, which could not go below zero, so we only needed one half of a bounds check. Since we switched to a signed int, we need to check the other half of the boundaries: if the index is below zero. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/449/head
parent
4fb60c0a7c
commit
37605d12d7
Loading…
Reference in new issue