 //  power_status.bat_volts = BAT_VOLTS_SCALE * read_adc(ADC_BAT_VOLTS_CHAN); // ((read_adc(ADC_BAT_VOLTS_CHAN) * BAT_VOLTS_SCALE) + 5) / 10;   //input of battery volts result scaled by 100
 //  power_status.sol_watts = (int)((((long)power_status.sol_amps * (long)power_status.sol_volts) + 50) / 100);    //calculations of solar watts scaled by 10000 divide by 100 to get scaled by 100                 
 }
+
 //------------------------------------------------------------------------------------------------------
 // This routine is the charger state machine. It has four states on, off, bulk and float.
 // It's called once each time through the main loop to see what state the charger should be in.

}

//------------------------------------------------------------------------------------------------------
// PWM Adjustments for constant voltage and constant power modes.
// If "target_difference" > 0, it increases PWM
// If "target_difference" < 0, it decreases PWM

  Serial.print(", \"state\": ");
  if (power_status.mode == MODE_OFF)                 Serial.print("\"off\",    ");
  else if (power_status.mode == MODE_MPPT_ON)        Serial.print("\"mppton\", ");
  else if (power_status.mode == MODE_MPPT_OFF)       Serial.print("\"mpptoff\",");
  else if (power_status.mode == MODE_MPPT_BULK)      Serial.print("\"bulk\",   ");
  else if (power_status.mode == MODE_MPPT_BAT_FLOAT) Serial.print("\"float\",  ");
  else if (power_status.mode == MODE_CONST_VOLT)     Serial.print("\"volt\",   ");
