mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
desktop: fixed type of dword eeprom read
This commit is contained in:
parent
338fb1642a
commit
6ad5df2958
@ -32,7 +32,7 @@ void eeprom_write_word(uint16_t *p, uint16_t value)
|
|||||||
pwrite(eeprom_fd, &value, 2, ofs);
|
pwrite(eeprom_fd, &value, 2, ofs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void eeprom_write_dword(uint16_t *p, uint32_t value)
|
void eeprom_write_dword(uint32_t *p, uint32_t value)
|
||||||
{
|
{
|
||||||
intptr_t ofs = (intptr_t)p;
|
intptr_t ofs = (intptr_t)p;
|
||||||
assert(ofs < 4096);
|
assert(ofs < 4096);
|
||||||
|
Loading…
Reference in New Issue
Block a user