Add missing includes of esp_chip_info.h and esp_mac.h

Needed for esp-idf v5.0.2
This commit is contained in:
alufers 2023-05-28 02:29:41 +02:00
parent 1b11ffc6ae
commit fae3a46e47
3 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <gdb-glue.h>
#include <esp_mac.h>
#include <esp_system.h>
#include "esp_chip_info.h"
void cli_device_info(Cli* cli, mstring_t* args) {
uint8_t mac_addr[8] = {0};
@ -156,4 +157,4 @@ void cli_device_info(Cli* cli, mstring_t* args) {
cli,
"chip_feature_IEEE802154: %s",
(chip_info.features & CHIP_FEATURE_IEEE802154) ? "true" : "false");
}
}

View File

@ -5,12 +5,15 @@
#include <cJSON.h>
#include <esp_wifi.h>
#include <esp_system.h>
#include <esp_chip_info.h>
#include <esp_mac.h>
#include "network.h"
#include "nvs.h"
#include "nvs-config.h"
#include "led.h"
#include "helpers.h"
#define TAG "network-http"
#define JSON_ERROR(error_text) "{\"error\": \"" error_text "\"}"
#define JSON_RESULT(result_text) "{\"result\": \"" result_text "\"}"

View File

@ -3,6 +3,7 @@
#include "network.h"
#include <esp_log.h>
#include <esp_wifi.h>
#include <esp_mac.h>
#include <freertos/event_groups.h>
#include <string.h>
#include <m-string.h>