From a50a24aed3029f8ccd88df481dfc710f01229f67 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Apr 2026 22:22:32 -1000 Subject: [PATCH] [rp2040] Fix clang-format: drop trailing underscore from static function --- esphome/components/rp2040/core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/rp2040/core.cpp b/esphome/components/rp2040/core.cpp index ffd5e65765..6f178f84fe 100644 --- a/esphome/components/rp2040/core.cpp +++ b/esphome/components/rp2040/core.cpp @@ -27,7 +27,7 @@ void HOT yield() { ::yield(); } // // Also installed as __wrap_millis (via -Wl,--wrap=millis) so Arduino library // code calling ::millis() directly gets the fast version. -static uint32_t HOT millis_accumulator_() { +static uint32_t HOT millis_accumulator() { static uint32_t s_cache = 0; static uint32_t s_remainder = 0; static uint32_t s_last_us = 0; @@ -41,7 +41,7 @@ static uint32_t HOT millis_accumulator_() { } return s_cache; } -uint32_t HOT millis() { return millis_accumulator_(); } +uint32_t HOT millis() { return millis_accumulator(); } // millis_64() keeps the full 64-bit timer for precision — called once per loop by Scheduler. uint64_t millis_64() { return micros_to_millis(time_us_64()); } void HOT delay(uint32_t ms) { ::delay(ms); }