Skip to content

Commit a0e9307

Browse files
committed
fix(at): Fix build warnings
1 parent 5b05ee1 commit a0e9307

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/wifi_remote_over_at/src/wifi_remote_over_at.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ class DCE : public esp_modem::DCE_T<ESP_AT_Module> {
138138
std::string ip, gw, mask;
139139
if (get_ip(ip, gw, mask)) {
140140
ESP_LOGI(TAG, "Connected to WiFi with IP: %s", ip.c_str());
141-
ip_event_got_ip_t evt = { };
142-
evt.esp_netif = s_esp_netif;
143-
evt.ip_info.ip.addr = esp_ip4addr_aton(ip.c_str());
144-
evt.ip_info.gw.addr = esp_ip4addr_aton(gw.c_str());
145-
evt.ip_info.netmask.addr = esp_ip4addr_aton(mask.c_str());
141+
// ip_event_got_ip_t evt = { };
142+
// evt.esp_netif = s_esp_netif;
143+
// evt.ip_info.ip.addr = esp_ip4addr_aton(ip.c_str());
144+
// evt.ip_info.gw.addr = esp_ip4addr_aton(gw.c_str());
145+
// evt.ip_info.netmask.addr = esp_ip4addr_aton(mask.c_str());
146146
if (esp_event_handler_register(IP_EVENT, ESP_EVENT_ANY_ID, on_ip, this) != ESP_OK) {
147147
printf("Failed to register IP event handler");
148148
}
@@ -171,7 +171,7 @@ class DCE : public esp_modem::DCE_T<ESP_AT_Module> {
171171
private:
172172
static void on_ip(void *arg, esp_event_base_t base, int32_t event_id, void *data)
173173
{
174-
auto t = static_cast<DCE *>(arg);
174+
// auto t = static_cast<DCE *>(arg);
175175

176176
ip_event_got_ip_t *event = (ip_event_got_ip_t *)data;
177177
esp_netif_t *netif = event->esp_netif;

0 commit comments

Comments
 (0)