Skip to content

Commit

Permalink
delete img_convert.h as included in code\components\tflite-micro-esp-… (
Browse files Browse the repository at this point in the history
#1695)

* delete img_convert.h as included in code\components\tflite-micro-esp-examples\components\esp32-camera\conversions\include\img_converters.h

* macro definition #ifdef ENABLE_SOFTAP
  • Loading branch information
nliaudat authored Dec 27, 2022
1 parent 3a888c5 commit 39a02c6
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1,521 deletions.
128 changes: 0 additions & 128 deletions code/components/jomjol_controlcamera/img_converters.h

This file was deleted.

5 changes: 3 additions & 2 deletions code/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ extern "C" void app_main(void)

CheckOTAUpdate();
CheckUpdate();
CheckStartAPMode(); // if no wlan.ini and/or config.ini --> AP ist startet and this function does not exit anymore until reboot

#ifdef ENABLE_SOFTAP
CheckStartAPMode(); // if no wlan.ini and/or config.ini --> AP ist startet and this function does not exit anymore until reboot
#endif

char *ssid = NULL, *passwd = NULL, *hostname = NULL, *ip = NULL, *gateway = NULL, *netmask = NULL, *dns = NULL; int rssithreashold = 0;
LoadWlanFromFile("/sdcard/wlan.ini", ssid, passwd, hostname, ip, gateway, netmask, dns, rssithreashold);
Expand Down
5 changes: 4 additions & 1 deletion code/main/softAP.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifdef ENABLE_SOFTAP
//if ENABLE_SOFTAP = disabled, set CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n in sdkconfig.defaults to save 28k of flash

#include "softAP.h"

/* WiFi softAP Example
Expand Down Expand Up @@ -486,4 +489,4 @@ void CheckStartAPMode()

}


#endif //#ifdef ENABLE_SOFTAP
6 changes: 5 additions & 1 deletion code/main/softAP.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifdef ENABLE_SOFTAP

#ifndef SOFTAP_H
#define SOFTAP_H

Expand All @@ -16,4 +18,6 @@

void CheckStartAPMode();

#endif
#endif //SOFTAP_H

#endif //#ifdef ENABLE_SOFTAP
2 changes: 1 addition & 1 deletion code/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ board = esp32cam
framework = espidf

;Add macro definition ENABLE_MQTT, ENABLE_INFLUXDB, DEBUG_DETAIL_ON
build_flags = -D ENABLE_MQTT -D ENABLE_INFLUXDB
build_flags = -D ENABLE_MQTT -D ENABLE_INFLUXDB -D ENABLE_SOFTAP

;board_build.partitions = partitions_singleapp.csv
board_build.partitions = partitions.csv
Expand Down
4 changes: 4 additions & 0 deletions code/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# sdkconfig.esp32cam to apply your changes!
##################################################

#if ENABLE_SOFTAP = disabled, set
#CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n
#to save 28k of flash

CONFIG_TASK_WDT=n
CONFIG_TASK_WDT_CHECK_IDLE_TASK=n

Expand Down
Loading

0 comments on commit 39a02c6

Please sign in to comment.