Merge pull request #1249 from valeriyvan/fixindefiniteloop

Uses const UINT8_MAX for max value of uint8_t; Fixes loop condition.
This commit is contained in:
Tanek 2018-03-03 16:19:10 +08:00 committed by GitHub
commit 7438d1846c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ static int ft5x06_dump(void)
DEBUG_PRINTF("[FTS] Touch Chip\r\n"); DEBUG_PRINTF("[FTS] Touch Chip\r\n");
for (i = 0; i <= 255; i++) for (i = 0; i < UINT8_MAX; i++)
{ {
_ft5x06_read(i, &reg_value, 1); _ft5x06_read(i, &reg_value, 1);