1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

touchscreen driver fixes (#6356)

This commit is contained in:
Clyde Stubbs
2024-03-13 05:20:16 +11:00
committed by GitHub
parent f5b02056b9
commit f264151537
2 changed files with 8 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ class FT5x06Touchscreen : public touchscreen::Touchscreen, public i2c::I2CDevice
this->x_raw_max_ = this->display_->get_native_width();
}
if (this->y_raw_max_ == this->y_raw_min_) {
this->x_raw_max_ = this->display_->get_native_height();
this->y_raw_max_ = this->display_->get_native_height();
}
}
esph_log_config(TAG, "FT5x06 Touchscreen setup complete");