|
|
@@ -136,30 +136,6 @@ etc. To deactivate the Serial printing, define the macro empty:
|
|
|
|
|
|
*/
|
|
|
|
|
|
-#include <EEPROM.h>
|
|
|
-
|
|
|
-
|
|
|
- int EEPROM_Active_ControllerID_addr = 0 ;
|
|
|
-
|
|
|
-typedef int EEPROM_Active_ControllerID_read_T ;
|
|
|
-
|
|
|
-// EEPROM.get( EEPROM_Active_ControllerID_addr, EEPROM_Active_ControllerID_read );
|
|
|
- EEPROM_Active_ControllerID_read_T EEPROM_Active_ControllerID_read = EEPROM.read( EEPROM_Active_ControllerID_addr );
|
|
|
-
|
|
|
-
|
|
|
-if(EEPROM_Active_ControllerID_read) {
|
|
|
-
|
|
|
-}
|
|
|
- // if(EEPROM_Active_ControllerID_read > 0 ) {
|
|
|
- //const ing Active_ControllerID_E = 0x13 ;
|
|
|
- // Serial.println("EER[OK]");
|
|
|
- // } else {
|
|
|
- // Serial.println("EER[EMPT]");
|
|
|
- // const ing Active_ControllerID_E = 0x13 ;
|
|
|
- // EEPROM.update(EEPROM_Active_ControllerID_addr, 0x13);
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
#include "___CONFIG/config_Active_ControllerID.h" //there kleep id of device
|
|
|
@@ -456,7 +432,25 @@ void setup() { //REMEMBER NOT INITIALIZE ANY VARIABLES OR ARRAYS
|
|
|
Serial.begin(115200);
|
|
|
|
|
|
|
|
|
+
|
|
|
+ int EEPROM_Active_ControllerID_addr = 0 ;
|
|
|
+
|
|
|
+ int EEPROM_Active_ControllerID_read ;
|
|
|
+
|
|
|
+// EEPROM.get( EEPROM_Active_ControllerID_addr, EEPROM_Active_ControllerID_read );
|
|
|
+ EEPROM_Active_ControllerID_read = EEPROM.read( EEPROM_Active_ControllerID_addr );
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ if(EEPROM_Active_ControllerID_read > 0 ) {
|
|
|
+ //const ing Active_ControllerID_E = 0x13 ;
|
|
|
+ Serial.println("EER[OK]");
|
|
|
+ } else {
|
|
|
+ Serial.println("EER[EMPT]");
|
|
|
+ // const ing Active_ControllerID_E = 0x13 ;
|
|
|
+ EEPROM.update(EEPROM_Active_ControllerID_addr, 0x13);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
#if defined(DEBUG) || defined(DEBUG_QUEUE)
|
|
|
Serial.println("#329 Serial.begin(115200)");
|