From e3fd61d75800c1a0666b35bf3021b05c4516b100 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 9 Oct 2011 15:55:21 +1100 Subject: [PATCH] desktop: expand eeprom to 4k initial size --- libraries/Desktop/support/eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/Desktop/support/eeprom.c b/libraries/Desktop/support/eeprom.c index d5dc5eea35..c6c8b11b81 100644 --- a/libraries/Desktop/support/eeprom.c +++ b/libraries/Desktop/support/eeprom.c @@ -11,6 +11,7 @@ static void eeprom_open(void) { if (eeprom_fd == 0) { eeprom_fd = open("eeprom.bin", O_RDWR|O_CREAT, 0777); + ftruncate(eeprom_fd, 4096); } }