fix: touch configuration security risk fixed

This commit is contained in:
Y1hsiaochunnn
2026-03-30 15:29:31 +08:00
parent a877d95f74
commit addf5fcc64
11 changed files with 66 additions and 12 deletions

View File

@ -195,7 +195,7 @@ private:
{
.disable_control_phase = 1,
}
}
};
tp_io_config.scl_speed_hz = 400 * 1000;
ESP_ERROR_CHECK(esp_lcd_new_panel_io_i2c(i2c_bus_, &tp_io_config, &tp_io_handle));
ESP_ERROR_CHECK(esp_lcd_touch_new_i2c_gt1151(tp_io_handle, &tp_cfg, &tp));