a.binder 5 年之前
父節點
當前提交
dfbb59d46a

+ 1 - 0
SE/stuff/P5_Automation_can-dev-res/_PortStates_struct.h

@@ -1,6 +1,7 @@
 
 typedef  byte Exp_state_T ;
 
+ const  Exp_state_T Exp_state_UNSET        =  B00000000 ; 
  const  Exp_state_T Exp_state_OFF          =  B00000001 ; 
  const  Exp_state_T Exp_state_ON           =  B00000010 ;
  const  Exp_state_T Exp_state_ON_USE_LEVEL =  B00000100 ; // use Exp_state_level 0-255

+ 2 - 2
SE/stuff/P5_Automation_can-dev-res/___CONFIG/0x13/config_Slave_Ports_LOCAL_0x13_init.h

@@ -48,7 +48,7 @@ ARDUINO_FUNCT_INIT_RESULT_T _Slave_Ports_LOCAL_init(
                                 PortTypes_P2M_EXP_I2C | PortTypes_SERVO | PortTypes_SERVO_360 , //int  PortTypes,
                                 0x40 ,  //int  Address,
                                 4 , //int  LocalPort,
-                                Exp_state_OFF, //int  Exp_state,
+                                Exp_state_UNSET, //Exp_state_OFF, //int  Exp_state,
                                 Exp_state_ttl_TO_REFRESH, //int  Exp_state_ttl,
                                 Broadcast_state_TO_REFRESH, //int  Broadcast_state,
                                 I2C_port_DEFAULT, //int I2C_port,
@@ -67,7 +67,7 @@ ARDUINO_FUNCT_INIT_RESULT_T _Slave_Ports_LOCAL_init(
                                 PortTypes_P2M_EXP_I2C | PortTypes_SERVO , //int  PortTypes,
                                 0x40 ,  //int  Address,
                                 3 , //int  LocalPort,
-                                Exp_state_BLINK, //int  Exp_state,
+                                Exp_state_UNSET, //Exp_state_BLINK, //int  Exp_state,
                                 Exp_state_ttl_TO_REFRESH, //int  Exp_state_ttl,
                                 Broadcast_state_TO_REFRESH, //int  Broadcast_state,
                                 I2C_port_DEFAULT, //int I2C_port,