Skip to content

Commit

Permalink
Fix compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hayschan committed May 30, 2024
1 parent e4c956f commit b270338
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main/esp32-ip-to-geolocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EventGroupHandle_t s_wifi_event_group;
const int WIFI_CONNECTED_BIT = BIT0;
const int WIFI_FAIL_BIT = BIT1;

static void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data) {
void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data) {
if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_START) {
esp_wifi_connect();
} else if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) {
Expand Down Expand Up @@ -115,7 +115,6 @@ void http_get_task(void *pvParameters) {


void app_main() {
nvs_flash_init();
wifi_init_sta();
xTaskCreate(&http_get_task, "http_get_task", 8192, NULL, 5, NULL);
}

0 comments on commit b270338

Please sign in to comment.