DataFlash: make the SITL dataflash log 4x larger

This commit is contained in:
Andrew Tridgell 2013-11-07 10:18:38 +11:00
parent a86ec8c786
commit 900ea5dde0
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@
#include "DataFlash.h"
#define DF_PAGE_SIZE 512
#define DF_NUM_PAGES 4096
#define DF_NUM_PAGES 16384
extern const AP_HAL::HAL& hal;
@ -36,6 +36,7 @@ void DataFlash_SITL::Init(void)
write(flash_fd, fill, DF_PAGE_SIZE*DF_NUM_PAGES);
free(fill);
}
ftruncate(flash_fd, DF_PAGE_SIZE*DF_NUM_PAGES);
}
df_PageSize = DF_PAGE_SIZE;