a.binder hace 5 años
padre
commit
f34dc940ab

+ 1 - 1
SE/stuff/P5_Automation_can-dev-res/P5_Automation_can-dev-res.ino

@@ -82,7 +82,7 @@
 #define HAS__PCINT_setup //to allow interrupts
 
 
-#define DEBUG 5 //Debug level
+#define DEBUG 1 //Debug level
 
 #include "__main_struct.h"
 #include "__main_struct_funct.h"

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

@@ -1,7 +1,7 @@
 if(!digitalRead(CAN_INTpin))                    // If pin 2 is low, read receive buffer
           {
             CAN0.readMsgBuf(&CANrxId, &CANlen, CANrxBuf); // Read data: len = data length, buf = data byte(s)
-            Serial.print("# read ID: ");
+            Serial.print("#4444 read ID: ");
             Serial.print(CANrxId, HEX);
             Serial.print(" Data: ");
            /*  #if defined(HAS_LCD1602)

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

@@ -156,9 +156,9 @@
                             Serial.println("]  ");
                     #endif    
                   message = "";
-                 message.concat("#:")  ; 
+                 message.concat(":")  ; 
                  message.concat(i);
-                 message.concat(" ID:");
+                 message.concat("#");
                  message.concat(Slave_Ports_Status_A[i].Port_ID )  ; 
                  message.concat(" ");
                  // message.toCharArray(DISPLAY_array16_AA, message.length());
@@ -180,7 +180,7 @@
                  message2.concat(Slave_Ports_Status_A[i].Exp_state_ttl )  ;
                  message2.concat(" B:");
                  message2.concat(Slave_Ports_Status_A[i].Broadcast_state )  ;
-                 message2.concat(" ");
+                 //message2.concat(" ");
                  message2.toCharArray(DISPLAY_array16_AB, message2.length());             
                 
                  DISPLAY__print(