From e1bda24564ce7ed4f7971697b0738550519e5e12 Mon Sep 17 00:00:00 2001 From: SGE Date: Mon, 1 Apr 2024 21:05:45 +0200 Subject: [PATCH] formatting issues --- esphome/components/icnt86/icnt86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/icnt86/icnt86.cpp b/esphome/components/icnt86/icnt86.cpp index 5478ad540a..34e0c46bd8 100644 --- a/esphome/components/icnt86/icnt86.cpp +++ b/esphome/components/icnt86/icnt86.cpp @@ -84,7 +84,7 @@ void ICNT86Touchscreen::icnt_read_(UWORD reg, char const *data, UBYTE len) { thi void ICNT86Touchscreen::icnt_write_(UWORD reg, char const *data, UBYTE len) { this->i2c_write_byte_(reg, data, len); } void ICNT86Touchscreen::i2c_read_byte_(UWORD reg, char const *data, UBYTE len) { - char *rbuf = data; + char *rbuf = const data; this->i2c_write_byte_(reg, nullptr, 0); this->read((uint8_t *) rbuf, len); }