mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
Use #elif for mutually exclusive platform guards
This commit is contained in:
@@ -45,9 +45,7 @@ void IRAM_ATTR socket_wake() {
|
||||
s_socket_woke = true;
|
||||
esp_schedule();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_RP2040
|
||||
#elif defined(USE_RP2040)
|
||||
// RP2040 (non-FreeRTOS) socket wake using hardware WFE/SEV instructions.
|
||||
//
|
||||
// Same pattern as ESP8266's esp_delay()/esp_schedule(): set a one-shot timer,
|
||||
|
||||
Reference in New Issue
Block a user