mirror of https://github.com/ArduPilot/ardupilot
desktop: expand eeprom to 4k initial size
This commit is contained in:
parent
b8dfdc293b
commit
65900dd1e0
|
@ -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