diff --git a/esphome/core/hal.h b/esphome/core/hal.h index db370f3568..2155799ee5 100644 --- a/esphome/core/hal.h +++ b/esphome/core/hal.h @@ -132,6 +132,7 @@ __attribute__((always_inline)) inline bool in_isr_context() { // loop. ESP8266/LibreTiny/RP2040 share Arduino's ::yield/::delay/::micros. #if defined(USE_ESP32) // Forward decl from . +// NOLINTNEXTLINE(readability-redundant-declaration) extern "C" int64_t esp_timer_get_time(void); __attribute__((always_inline)) inline void yield() { vPortYield(); } __attribute__((always_inline)) inline void delay(uint32_t ms) { vTaskDelay(ms / portTICK_PERIOD_MS); }