mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
desktop: expand eeprom to 4k initial size
This commit is contained in:
parent
dfef42ff48
commit
e3fd61d758
@ -11,6 +11,7 @@ static void eeprom_open(void)
|
|||||||
{
|
{
|
||||||
if (eeprom_fd == 0) {
|
if (eeprom_fd == 0) {
|
||||||
eeprom_fd = open("eeprom.bin", O_RDWR|O_CREAT, 0777);
|
eeprom_fd = open("eeprom.bin", O_RDWR|O_CREAT, 0777);
|
||||||
|
ftruncate(eeprom_fd, 4096);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user