From 005a556d410f20115662c97a4aa0488bf986215c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 7 Feb 2022 11:40:35 +0100 Subject: [PATCH] Fix esp32 wire library induced compile error Fix esp32 wire library induced compile error (#14754) --- tasmota/xdsp_04_ili9341.ino | 2 +- tasmota/xdsp_12_ST7789.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdsp_04_ili9341.ino b/tasmota/xdsp_04_ili9341.ino index e4142b6c0..ae10047a2 100755 --- a/tasmota/xdsp_04_ili9341.ino +++ b/tasmota/xdsp_04_ili9341.ino @@ -124,7 +124,7 @@ void ILI9341_InitDriver() #define SDA_2 21 #undef SCL_2 #define SCL_2 22 - Wire1.begin(SDA_2, SCL_2, 400000); + Wire1.begin(SDA_2, SCL_2, (uint32_t)400000); FT5206_Touch_Init(Wire1); #endif // USE_FT5206 #endif // ESP32 diff --git a/tasmota/xdsp_12_ST7789.ino b/tasmota/xdsp_12_ST7789.ino index fb55f6d91..37e3280e3 100644 --- a/tasmota/xdsp_12_ST7789.ino +++ b/tasmota/xdsp_12_ST7789.ino @@ -118,7 +118,7 @@ void ST7789_InitDriver(void) { #define SDA_2 4 #define SCL_2 0 #endif // USE_LANBON_L8 - Wire1.begin(SDA_2, SCL_2, 400000); + Wire1.begin(SDA_2, SCL_2, (uint32_t)400000); FT5206_Touch_Init(Wire1); #endif // USE_FT5206 #endif // ESP32