unix/flash: default FLASH_FILE

pull/25/head
Jan Pochyla 7 years ago
parent c78babdc12
commit 12708b4987

@ -10,6 +10,10 @@
#include "../trezorhal/flash.h"
#ifndef FLASH_FILE
#define FLASH_FILE "/var/tmp/trezor.config"
#endif
#define SECTOR_COUNT 24
static const uint32_t sector_table[SECTOR_COUNT + 1] = {
@ -40,8 +44,6 @@ static const uint32_t sector_table[SECTOR_COUNT + 1] = {
[24] = 0x08200000, // last element - not a valid sector
};
#define FLASH_FILE "tmp"
static uint8_t flash_buffer[0x200000];
static void flash_sync(void)

Loading…
Cancel
Save