Fix clang-tidy: rename wake_loop_impl_ to wake_loop_impl (no trailing underscore on free functions)

This commit is contained in:
J. Nick Koston
2026-04-04 12:10:42 -10:00
parent 58ab4866a6
commit c74889de67
3 changed files with 4 additions and 4 deletions
@@ -44,7 +44,7 @@ void socket_delay(uint32_t ms) {
void IRAM_ATTR socket_wake() {
s_socket_woke = true;
// Inline impl — this is IRAM_ATTR so the inlined code stays in IRAM
esphome::wake_loop_impl_();
esphome::wake_loop_impl();
}
#elif defined(USE_RP2040)
// RP2040 (non-FreeRTOS) socket wake using hardware WFE/SEV instructions.
+1 -1
View File
@@ -27,7 +27,7 @@ volatile bool g_main_loop_woke = false;
#endif
#ifdef USE_ESP8266
void IRAM_ATTR wake_loop_any_context() { wake_loop_impl_(); }
void IRAM_ATTR wake_loop_any_context() { wake_loop_impl(); }
#endif
// === RP2040 — wakeable_delay (needs file-scope state for alarm callback) ===
+2 -2
View File
@@ -54,7 +54,7 @@ inline void wakeable_delay(uint32_t ms) {
#elif defined(USE_ESP8266)
/// Inline implementation — IRAM callers inline this directly.
inline void ESPHOME_ALWAYS_INLINE wake_loop_impl_() {
inline void ESPHOME_ALWAYS_INLINE wake_loop_impl() {
g_main_loop_woke = true;
esp_schedule();
}
@@ -63,7 +63,7 @@ inline void ESPHOME_ALWAYS_INLINE wake_loop_impl_() {
void wake_loop_any_context();
/// Non-ISR: always inline.
inline void wake_loop_threadsafe() { wake_loop_impl_(); }
inline void wake_loop_threadsafe() { wake_loop_impl(); }
namespace internal {
inline void wakeable_delay(uint32_t ms) {