[esp8266] Address Copilot review on #16112

- hal.cpp: include esphome/core/helpers.h for the HOT macro (millis/delay
  use it; without the include the TU fails to compile).
- hal_esp8266.h: drop the redundant arch_get_cpu_cycle_count() bare
  declaration that came back via the merge from dev (the inline def
  above already declares the function).
This commit is contained in:
J. Nick Koston
2026-04-29 15:37:47 -05:00
parent 6bbb5668b4
commit 09542430f4
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
#ifdef USE_ESP8266
#include "esphome/core/hal.h"
#include "esphome/core/helpers.h"
#include <Arduino.h>
#include <core_esp8266_features.h>
-2
View File
@@ -66,8 +66,6 @@ __attribute__((always_inline)) inline void arch_init() {}
__attribute__((always_inline)) inline uint32_t arch_get_cpu_cycle_count() { return esp_get_cycle_count(); }
__attribute__((always_inline)) inline uint32_t arch_get_cpu_freq_hz() { return F_CPU; }
uint32_t arch_get_cpu_cycle_count();
} // namespace esphome
#endif // USE_ESP8266