diff --git a/bsp/stm32f429-armfly/drivers/drv_ft5x06.c b/bsp/stm32f429-armfly/drivers/drv_ft5x06.c index 4506795177..70be723c50 100644 --- a/bsp/stm32f429-armfly/drivers/drv_ft5x06.c +++ b/bsp/stm32f429-armfly/drivers/drv_ft5x06.c @@ -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);