eeprom: fixed types to be consistent with declarations

This commit is contained in:
Andrew Tridgell 2011-10-08 09:14:12 +11:00
parent dcc6f30af1
commit 09bd94cd6d
1 changed files with 2 additions and 2 deletions

View File

@ -21,13 +21,13 @@ AP_EEPROMB::write_byte(int address, int8_t value)
}
void
AP_EEPROMB::write_int(int address, int value)
AP_EEPROMB::write_int(int address, int16_t value)
{
eeprom_write_word((uint16_t *) address, value);
}
void
AP_EEPROMB::write_long(int address, long value)
AP_EEPROMB::write_long(int address, int32_t value)
{
eeprom_write_dword((uint32_t *) address, value);
}