Skip to content

Commit d2816b2

Browse files
stickbreakerme-no-dev
authored andcommitted
Fix Unused Variable Warning (#2940)
Some Debugging variables were enabled at ERROR level instead of DEBUG. Specifically `tAfter` and `tBefore`
1 parent 2e32022 commit d2816b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/esp32-hal-i2c.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1270,15 +1270,15 @@ i2c_err_t i2cProcQueue(i2c_t * i2c, uint32_t *readCount, uint16_t timeOutMillis)
12701270

12711271
i2c->dev->ctr.trans_start=1; // go for it
12721272

1273-
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
1273+
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
12741274
portTickType tBefore=xTaskGetTickCount();
12751275
#endif
12761276

12771277
// wait for ISR to complete the transfer, or until timeOut in case of bus fault, hardware problem
12781278

12791279
uint32_t eBits = xEventGroupWaitBits(i2c->i2c_event,EVENT_DONE,pdFALSE,pdTRUE,ticksTimeOut);
12801280

1281-
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
1281+
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
12821282
portTickType tAfter=xTaskGetTickCount();
12831283
#endif
12841284

0 commit comments

Comments
 (0)