Browse Source

Update battery.c

wizmo2 3 năm trước cách đây
mục cha
commit
d3dd8b9078
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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,