From bb528f0e0af8ead1b7d6c9f240a2d5300233c84e Mon Sep 17 00:00:00 2001 From: chuck todd Date: Wed, 26 Jun 2019 19:17:05 -0600 Subject: [PATCH] Fix Unused Variable Warning Some Debugging variables were enabled at ERROR level instead of DEBUG. Specifically `tAfter` and `tBefore` --- cores/esp32/esp32-hal-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp32/esp32-hal-i2c.c b/cores/esp32/esp32-hal-i2c.c index 7862f78b6a2..d85919cfdb3 100644 --- a/cores/esp32/esp32-hal-i2c.c +++ b/cores/esp32/esp32-hal-i2c.c @@ -1270,7 +1270,7 @@ i2c_err_t i2cProcQueue(i2c_t * i2c, uint32_t *readCount, uint16_t timeOutMillis) i2c->dev->ctr.trans_start=1; // go for it -#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR +#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG portTickType tBefore=xTaskGetTickCount(); #endif @@ -1278,7 +1278,7 @@ i2c_err_t i2cProcQueue(i2c_t * i2c, uint32_t *readCount, uint16_t timeOutMillis) uint32_t eBits = xEventGroupWaitBits(i2c->i2c_event,EVENT_DONE,pdFALSE,pdTRUE,ticksTimeOut); -#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR +#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG portTickType tAfter=xTaskGetTickCount(); #endif