Fix friend declaration for ESP8266 clang-tidy

The fully-qualified friend uint64_t ::esphome::millis_64() syntax
causes 'uint64_t is not a class, namespace, or enumeration' errors
on the ESP8266 clang-tidy toolchain. Use unqualified form which
resolves correctly within the esphome namespace.
This commit is contained in:
J. Nick Koston
2026-02-26 23:18:55 -10:00
parent 33d4f62510
commit 0e05ae56e5
+1 -1
View File
@@ -299,7 +299,7 @@ class Scheduler {
// On non-ESP32 platforms, millis_64() HAL function delegates to this method
// which tracks 32-bit millis() rollover using millis_major_ and last_millis_.
// On ESP32, millis_64() uses esp_timer_get_time() directly.
friend uint64_t ::esphome::millis_64();
friend uint64_t millis_64();
uint64_t millis_64_impl_(uint32_t now);
#endif
// Cleanup logically deleted items from the scheduler