未验证 提交 7438d184 编写于 作者: T Tanek 提交者: GitHub

Merge pull request #1249 from valeriyvan/fixindefiniteloop

Uses const UINT8_MAX for max value of uint8_t; Fixes loop condition.
...@@ -157,7 +157,7 @@ static int ft5x06_dump(void) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册