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 ESP8266 clang-tidy. Use unqualified form which resolves correctly
within the esphome namespace.
This commit is contained in:
J. Nick Koston
2026-02-26 23:18:31 -10:00
parent 6901908ead
commit 4fbe9cace0
+1 -1
View File
@@ -298,7 +298,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