1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-18 12:05:41 +00:00

change the input parameter type of the got_ip_ event_handler

This commit is contained in:
Alexandr Pyslar 2025-01-15 07:50:42 +00:00
parent 86ee9db438
commit d12e8d0f63
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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_();