Browse Source

Cleanup defines.h (#1967)

* Update defines.h

* Update: Disable USE_HIMEM_IF_AVAILABLE
Slider0007 3 năm trước cách đây
mục cha
commit
2ee85001eb
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      code/include/defines.h

+ 3 - 2
code/include/defines.h

@@ -21,7 +21,9 @@
 
 
 
 
     // use himem //https://github.com/jomjol/AI-on-the-edge-device/issues/1842
     // use himem //https://github.com/jomjol/AI-on-the-edge-device/issues/1842
-    #define USE_HIMEM_IF_AVAILABLE
+    #if (CONFIG_SPIRAM_BANKSWITCH_ENABLE)
+        #define USE_HIMEM_IF_AVAILABLE 1
+    #endif
 
 
     /* Uncomment this to generate task list with stack sizes using the /heap handler
     /* Uncomment this to generate task list with stack sizes using the /heap handler
         PLEASE BE AWARE: The following CONFIG parameters have to to be set in 
         PLEASE BE AWARE: The following CONFIG parameters have to to be set in 
@@ -116,7 +118,6 @@
 
 
     //ClassFlowControll: Serve alg_roi.jpg from memory as JPG
     //ClassFlowControll: Serve alg_roi.jpg from memory as JPG
     #define ALGROI_LOAD_FROM_MEM_AS_JPG // Load ALG_ROI.JPG as rendered JPG from RAM
     #define ALGROI_LOAD_FROM_MEM_AS_JPG // Load ALG_ROI.JPG as rendered JPG from RAM
-    #define ALGROI_LOAD_FROM_MEM_AS_JPG__SHOW_TAKE_IMAGE_PROCESS // Show take image image processing on webinterface (overview.html)
 
 
     //ClassFlowMQTT
     //ClassFlowMQTT
     #define LWT_TOPIC        "connection"
     #define LWT_TOPIC        "connection"