Skip to content

Commit 6ff144c

Browse files
committed
fix(touch): fix GT911 build warning
1 parent 603446d commit 6ff144c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/touch/GT911.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool ESP_PanelTouch_GT911::begin(void)
4343

4444
ESP_PanelBus_I2C *i2c_bus = static_cast<ESP_PanelBus_I2C *>(bus);
4545
esp_lcd_touch_io_gt911_config_t tp_gt911_config = {
46-
.dev_addr = i2c_bus->getI2cAddress(),
46+
.dev_addr = static_cast<uint8_t>(i2c_bus->getI2cAddress()),
4747
};
4848
if (config.driver_data == NULL) {
4949
ESP_LOGD(TAG, "Use default GT911 driver data(address: 0x%02x)", tp_gt911_config.dev_addr);

0 commit comments

Comments
 (0)