warning-free compile

This commit is contained in:
Philippe G
2020-08-12 16:10:18 -07:00
parent 089c856df3
commit c01a83b466
19 changed files with 117 additions and 99 deletions

View File

@@ -268,6 +268,7 @@ static int free_mem(int argc, char **argv)
return 0;
}
/*
static struct {
struct arg_str *a2dp_dev_name;
struct arg_str *a2dp_sink_name;
@@ -276,9 +277,10 @@ static struct {
struct arg_str *enable_bt_sink;
struct arg_end *end;
} set_btsource_args;
*/
static int do_set_btsource(int argc, char **argv)
{
//static int do_set_btsource(int argc, char **argv)
//{
// a2dp_dev_name;
// a2dp_sink_name;
// wakeup_gpio_level;
@@ -317,8 +319,8 @@ static int do_set_btsource(int argc, char **argv)
// }
// rtc_gpio_isolate(GPIO_NUM_12);
// esp_deep_sleep_start();
return 0;
}
//return 0;
//}

View File

@@ -39,7 +39,7 @@ extern bool bypass_wifi_manager;
extern EventGroupHandle_t wifi_event_group;
extern const int CONNECTED_BIT;
static const char * TAG = "cmd_wifi";
//static const char * TAG = "cmd_wifi";
/** Arguments used by 'join' function */
static struct {
struct arg_int *timeout;
@@ -130,9 +130,8 @@ static bool wifi_join(const char *ssid, const char *pass, int timeout_ms)
return (bits & CONNECTED_BIT) != 0;
}
static int set_auto_connect(int argc, char **argv)
{
//static int set_auto_connect(int argc, char **argv)
//{
// int nerrors = arg_parse(argc, argv, (void **) &join_args);
// if (nerrors != 0) {
// arg_print_errors(stderr, join_args.end, argv[0]);
@@ -154,8 +153,9 @@ static int set_auto_connect(int argc, char **argv)
// return 1;
// }
// ESP_LOGI(__func__, "Connected");
return 0;
}
// return 0;
//}
static int connect(int argc, char **argv)
{
int nerrors = arg_parse_msg(argc, argv,(struct arg_hdr **)&join_args);

View File

@@ -12,23 +12,20 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "esp_system.h"
#include "esp_log.h"
#include "esp_console.h"
#include "esp_vfs_dev.h"
#include "driver/uart.h"
#include "linenoise/linenoise.h"
#include "argtable3/argtable3.h"
#include "nvs.h"
#include "nvs.h"
#include "nvs_flash.h"
#include "pthread.h"
#include "platform_esp32.h"
#include "esp_pthread.h"
#include "cmd_decl.h"
#include "wifi_manager.h"
#include "trace.h"
#include "platform_config.h"
#include "telnet.h"
#include "telnet.h"
#include "messaging.h"