summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cc1111/ao_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc1111/ao_battery.c b/src/cc1111/ao_battery.c
index 070f682f..b9845fb3 100644
--- a/src/cc1111/ao_battery.c
+++ b/src/cc1111/ao_battery.c
@@ -36,7 +36,7 @@ ao_battery_get(void)
ADCCON3 = ADCCON3_EREF_VDD | ADCCON3_EDIV_512 | BATTERY_PIN;
ao_sleep(DATA_TO_XDATA(&ao_battery_value));
);
- return (uint16_t) ((int32_t) ao_battery_value.v * (int32_t) 3333 >> 15);
+ return (uint16_t) ((int32_t) ao_battery_value.v * (int32_t) 4950 >> 15);
}
static void