瀏覽代碼

Update battery.c

wizmo2 3 年之前
父節點
當前提交
d3dd8b9078
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/services/battery.c

+ 2 - 2
components/services/battery.c

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