Browse Source

Update battery.c

wizmo2 3 years ago
parent
commit
d3dd8b9078
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/services/battery.c

+ 2 - 2
components/services/battery.c

@@ -32,8 +32,8 @@ static const char *TAG = "battery";
 static struct {
 	int channel;
 	float sum, avg, scale;
-	int count, attenuation;
-	int cells;
+	int count;
+	int cells, attenuation;
 	TimerHandle_t timer;
 } battery = {
 	.channel = CONFIG_BAT_CHANNEL,