From 1647b30e9857c39ca493dd8613a22ccd68ea0728 Mon Sep 17 00:00:00 2001 From: WangLei1993 Date: Mon, 15 May 2023 15:18:54 +0800 Subject: [PATCH] Remove unused variable by using "#if !defined()" --- cppsrc/U8x8lib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cppsrc/U8x8lib.cpp b/cppsrc/U8x8lib.cpp index e72f3653..fd85e5bd 100755 --- a/cppsrc/U8x8lib.cpp +++ b/cppsrc/U8x8lib.cpp @@ -881,7 +881,11 @@ extern "C" uint8_t u8x8_byte_arduino_3wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uin extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { #ifdef U8X8_HAVE_HW_SPI + +#if !defined(ESP_PLATFORM) uint8_t *data; +#endif + uint8_t internal_spi_mode; switch(msg)