mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 20:10:23 +08:00
Uses const UINT8_MAX for max value of uint8_t type; Fixes loop condition.
This commit is contained in:
parent
b9c2acba87
commit
bea1115ff1
@ -157,7 +157,7 @@ static int ft5x06_dump(void)
|
||||
|
||||
DEBUG_PRINTF("[FTS] Touch Chip\r\n");
|
||||
|
||||
for (i = 0; i <= 255; i++)
|
||||
for (i = 0; i < UINT8_MAX; i++)
|
||||
{
|
||||
_ft5x06_read(i, ®_value, 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user