@@ -147,9 +147,9 @@ void sendINA219valuesENERGY() {
147147 energyDifference = energy - energyPrevious;
148148 // ENERGY CONSUMPTION
149149 if (energy > 1000 && autoRange == 1 ) {
150- Blynk.virtualWrite (vPIN_ENERGY_USED, String ((energy / 1000 ), 6 ) + String (" kWh" ));
150+ Blynk.virtualWrite (vPIN_ENERGY_USED, String ((energy / 1000 ), 5 ) + String (" kWh" ));
151151 } else {
152- Blynk.virtualWrite (vPIN_ENERGY_USED, String (energy, 6 ) + String (" mWh" ));
152+ Blynk.virtualWrite (vPIN_ENERGY_USED, String (energy, 5 ) + String (" mWh" ));
153153 }
154154 energyPrevious = energy;
155155 // ENERGY COST
@@ -163,7 +163,7 @@ void sendINA219valuesENERGY() {
163163
164164// this is feeding raw data to the graph
165165void sendINA219_GraphValues () {
166- Blynk.virtualWrite (vPIN_CURRENT_GRAPH, current_AVG_total );
166+ Blynk.virtualWrite (vPIN_GRAPH, current_mA );
167167}
168168
169169// HOLD BUTTON
@@ -230,7 +230,7 @@ BLYNK_WRITE(vPIN_BUTTON_RESET_AVG) {
230230
231231}
232232void countdownResetConCallback () {
233- Blynk.virtualWrite (vPIN_ENERGY_USED, " 0.000000 mWh" );
233+ Blynk.virtualWrite (vPIN_ENERGY_USED, " 0.00000 mWh" );
234234 Blynk.virtualWrite (vPIN_ENERGY_COST, " 0.00000000" );
235235 energy = 0 ;
236236 energyCost = 0 ;
0 commit comments