diff options
Diffstat (limited to 'firmware/export/config/sansaconnect.h')
-rw-r--r-- | firmware/export/config/sansaconnect.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/export/config/sansaconnect.h b/firmware/export/config/sansaconnect.h index 5668d579fc..fa929f3c10 100644 --- a/firmware/export/config/sansaconnect.h +++ b/firmware/export/config/sansaconnect.h | |||
@@ -152,7 +152,15 @@ | |||
152 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | 152 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ |
153 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 153 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
154 | 154 | ||
155 | #define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE | 155 | /* bq27000 provides voltage, percentage and time measure. |
156 | * Voltage reading is available every 2.56 seconds and does not need filtering. | ||
157 | * Read the measured voltage every 3 seconds so we are guaranteed to not read | ||
158 | * the same value twice (do not try to read every 2.56 seconds as clocks are | ||
159 | * not synchronized). | ||
160 | */ | ||
161 | #define CONFIG_BATTERY_MEASURE (VOLTAGE_MEASURE|PERCENTAGE_MEASURE|TIME_MEASURE) | ||
162 | #define BATT_AVE_SAMPLES 1 | ||
163 | #define POWER_THREAD_STEP_TICKS (3*HZ) | ||
156 | 164 | ||
157 | /* define current usage levels */ | 165 | /* define current usage levels */ |
158 | #if 0 | 166 | #if 0 |