Skip to content

Commit e3d7bbd

Browse files
authored
Bug Fix
1 parent b4aac50 commit e3d7bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFunSX1509.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ void SX1509::debounceTime(uint8_t time)
544544
uint8_t configValue = 0;
545545
// We'll check for the highest set bit position,
546546
// and use that for debounceConfig
547-
for (uint8_t i = 7; i >= 0; i--)
547+
for (int8_t i = 7; i >= 0; i--)
548548
{
549549
if (time & (1 << i))
550550
{

0 commit comments

Comments
 (0)