mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
Fix clang-tidy: rename wake_loop_impl_ to wake_loop_impl (no trailing underscore on free functions)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user