mirror of
https://github.com/esphome/esphome.git
synced 2025-01-18 20:10:55 +00:00
change the input parameter type of the got_ip_ event_handler
This commit is contained in:
parent
86ee9db438
commit
d12e8d0f63
@ -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);
|
||||
|
@ -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_();
|
||||
|
Loading…
x
Reference in New Issue
Block a user