     print_data_json(); 
     print_counter = 0;
   }
-}
-//------------------------------------------------------------------------------------------------------
+*/  
+}
+//------------------------------------------------------------------------------------------------------

  lpf_in_amps.Init();

  state_switch(MODE_OFF);                     // start with charger state as off
  //state_switch(MODE_CONST_VOLT, 300);                       // start with charger state as off
}

//------------------------------------------------------------------------------------------------------


void loop()                          // run over and over again
{
  read_data();                         //read data from sensors
  state_machine();                     //run the state machine
  if (Serial.available() >= 4) {
    get_serial_command();              // read commands from serial
  }

  /*
  // update power info
