From d12e8d0f636c589718c72c594b8e278690345eb7 Mon Sep 17 00:00:00 2001 From: Alexandr Pyslar <34306652+CCChelios@users.noreply.github.com> Date: Wed, 15 Jan 2025 07:50:42 +0000 Subject: [PATCH] change the input parameter type of the got_ip_ event_handler --- esphome/components/modem/modem_component.cpp | 2 +- esphome/components/modem/modem_component.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/modem/modem_component.cpp b/esphome/components/modem/modem_component.cpp index 68c9cf3974..f1b4346287 100644 --- a/esphome/components/modem/modem_component.cpp +++ b/esphome/components/modem/modem_component.cpp @@ -344,7 +344,7 @@ network::IPAddress ModemComponent::get_ip_address() { return network::IPAddress(&ip.ip); } -void ModemComponent::got_ip_event_handler(void *arg, esp_event_base_t event_base, int event_id, void *event_data) { +void ModemComponent::got_ip_event_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data) { ESP_LOGD(TAG, "IP event! %" PRIu32, event_id); if (event_id == IP_EVENT_PPP_GOT_IP) { global_modem_component->set_state_(ModemComponentState::CONNECTED); diff --git a/esphome/components/modem/modem_component.h b/esphome/components/modem/modem_component.h index a29a1a78b1..605c1753d0 100644 --- a/esphome/components/modem/modem_component.h +++ b/esphome/components/modem/modem_component.h @@ -91,7 +91,7 @@ class ModemComponent : public Component { {ModemComponentState::CONNECTED, ModemComponentStateTiming(5000, 0)}, }; - static void got_ip_event_handler(void *arg, esp_event_base_t event_base, int event_id, void *event_data); + static void got_ip_event_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data); void modem_netif_init_(); void dte_init_(); void dce_init_();