 #define SYSTEM_MENU_34_EN_CURRENT_RENDER 34               //Enable/Disable CurrentSensor info render to Serial Port  (for Feature ver 2.2)
 #define SYSTEM_MENU_40_DEFAULTS 50                        //Reset Config to Default
 #define SYSTEM_CALIBRATING 100                            //RX inpout Calibrating mode
-
+  
 
 //Menus 
 #define MENU_INITIAL_PERIOD 5000                          //Time period from end SYSTEM_FIRST_START procedure for enter in Menu Mode (3 times switch press)

bool SystemServiceMode = false;                           //Enable embedded servotester for PPM generating(SYSTEM_SERVICE_PIN must be HIGH)

//System state vars
bool SwitchPOS = false;                                   //Switch position. TRUE if down, FALSE if UP
bool SwitchPOS_fromUp = false;                            //from upper position flag
bool EngineSTOP = false;                                  //Switch for cut-off engine ignition
bool EngineSTOP_flag = false;                             //Stopflag for prevent fast double switching

int value =0;
float vout=0;
  value = analogRead(MAIN_VOLTAGE_BATT_PIN);
  vout = (value * V_REF) / 1024.0;  
  MainBattVoltage = (vout / (MainBattR2/(MainBattR1+MainBattR2))) + MAIN_BATT_VADD;
}
  
