Rover: fixed Vcc

This commit is contained in:
Andrew Tridgell 2013-09-12 13:26:12 +10:00
parent fb56feb6b2
commit 6ab9b0b91b
1 changed files with 2 additions and 2 deletions

View File

@ -479,11 +479,11 @@ void flash_leds(bool on)
} }
/* /*
* Read Vcc vs 1.1v internal reference * Read board voltage in millivolts
*/ */
uint16_t board_voltage(void) uint16_t board_voltage(void)
{ {
return vcc_pin->read_latest(); return vcc_pin->voltage_latest() * 1000;
} }
static void static void