a.binder 5 years ago
parent
commit
1b9f1915f8

+ 9 - 3
SE/stuff/P5_Automation_can-dev-res/P5_Automation_can-dev-res.ino

@@ -95,6 +95,7 @@
 //#define DEBUG_TASK_TYPE_T_DISPLAY_queue_pop________
 //#define DEBUG_TASK_TYPE_T_Slave_Ports_set_I2C______
 //#define DEBUG_QUEUE_ASSERT todo not working
+//#define DEBUG_LAST_ACTION_TRIG_ENABLE
 #define DISABLE_DISPLAY__add_record 
 #define DISPLAY_array16_T_is_DISPLAY_string_T 
 #define ENABLE_DISPLAY_MENU
@@ -511,7 +512,9 @@ register long time;
             #endif
         #endif 
         if(DEBUG_ACTION_TRIG == 1 or (time % 100000 == 0)) {
-            Serial.print("Time: " );   Serial.println(time);
+            #if defined(DEBUG_ACTION_TRIG_ENABLE)
+                Serial.print("Time: " );   Serial.println(time);
+            #endif
         }
             #ifndef DISABLE_LOOP
                 if(DEBUG_ACTION_TRIG == 1) {
@@ -571,11 +574,14 @@ register long time;
         );     */
         
   //delay(10);
-  if(DEBUG_ACTION_TRIG != DEBUG_LAST_ACTION_TRIG)   {
+  
+    if(DEBUG_ACTION_TRIG != DEBUG_LAST_ACTION_TRIG)   {
+       #if defined(DEBUG_LAST_ACTION_TRIG_ENABLE)
         Serial.print("#534   DEBUG_ACTION_TRIG[");Serial.print(DEBUG_ACTION_TRIG);Serial.print("] "); Serial.print("]  LAST_DEBUG_ACTION_TRIG[");Serial.print(DEBUG_LAST_ACTION_TRIG);Serial.println("] ");
+       #endif 
      //   Serial.print("] COUNTER__MAIN_A["); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A);
      //   Serial.print("] COUNTER__MAIN_END_A["); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_END_A);
-  }
+    }
   DEBUG_LAST_ACTION_TRIG = DEBUG_ACTION_TRIG ;
   
 }

+ 1 - 1
SE/stuff/P5_Automation_can-dev-res/_Slave_Ports_Status_func.h

@@ -296,7 +296,7 @@
              
                 DISPLAY_PHYSICAL_CHAR_A.DISPLAY_MENU_A[1].DISPLAY_MENU_ITEM_A[i+1].DISPLAY_CURSOR_X_CHARS_A =  0 ;
                 DISPLAY_PHYSICAL_CHAR_A.DISPLAY_MENU_A[1].DISPLAY_MENU_ITEM_A[i+1].DISPLAY_CURSOR_Y_CHARS_A = i ;
-                DISPLAY_PHYSICAL_CHAR_A.DISPLAY_MENU_A[1].DISPLAY_MENU_ITEM_A[i+1].DISPLAY_string_A = message ;
+                DISPLAY_PHYSICAL_CHAR_A.DISPLAY_MENU_A[1].DISPLAY_MENU_ITEM_A[i+1].DISPLAY_string_A = message2 ;
                 DISPLAY_PHYSICAL_CHAR_A.DISPLAY_MENU_A[1].DISPLAY_MENU_ITEM_A[i+1].DISPLAY_COLOR_A = BLACK  ;
                 DISPLAY_PHYSICAL_CHAR_A.DISPLAY_MENU_A[1].DISPLAY_MENU_ITEM_A[i+1].DISPLAY_MENU_ITEM_FLAG_A = DISPLAY_MENU_ITEM_FLAG_INIT  ;
                 

+ 1 - 1
SE/stuff/P5_Automation_can-dev-res/___loop/___loop_init.h

@@ -7,7 +7,7 @@
 
 
 
-    static ARDUINO_LOOP_LATENCY_T      ARDUINO_LOOP_LATENCY__MAIN_A = 100 ; //EVERY 10 LOOPS INIT THIS LATENCY
+    static ARDUINO_LOOP_LATENCY_T      ARDUINO_LOOP_LATENCY__MAIN_A = 50 ; //EVERY 10 LOOPS INIT THIS LATENCY
     static ARDUINO_LOOP_LATENCY_T     ARDUINO_LOOP_LATENCY__MAIN_END_A = 500 ; //EVERY 10 LOOPS INIT THIS LATENCY
 
 

+ 2 - 0
SE/stuff/P5_Automation_can-dev-res/___loop/__main_loop_end.h

@@ -11,7 +11,9 @@ if(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_END(ARDUINO_LOOP_LATENCY__MAIN_END_A, ARDU
              #endif  
             
             #ifndef DISABLE_LOOP
+             #if defined(DEBUG_ACTION_TRIG_ENABLED)
                Serial.print("#11534   DEBUG_ACTION_TRIG[");Serial.print(DEBUG_ACTION_TRIG);
+             #endif
       //  Serial.print("] COUNTER__MAIN_A["); Serial.print(ARDUINO_LOOP_LATENCY_COUNTER__MAIN_A);
        
             #if defined(DEBUG_QUEUE)

+ 1 - 1
SE/stuff/P5_Automation_can-dev-res/___main/__main_struct_limits.h

@@ -29,4 +29,4 @@ ARDUINO_ARRAY_time_min_run_MIN_T TASK_TYPE_T_Slave_Ports_set_I2C______time_min_r
 
 const ARDUINO_LOOP_LATENCY_TASK_T ARDUINO_LOOP_LATENCY_TASK_ROTTARY_SW_loop_A = 500 ; //how to implement?
 
-const ARDUINO_LOOP_LATENCY_TASK_T ARDUINO_LOOP_LATENCY_DISPLAY_MENU = 250 ; //how to implement?
+const ARDUINO_LOOP_LATENCY_TASK_T ARDUINO_LOOP_LATENCY_DISPLAY_MENU = 1000 ; //how to implement?