[Taranis] EEPROM async write was disabled

This commit is contained in:
Bertrand Songis
2016-08-27 17:05:56 +02:00
parent 508e3e899c
commit 3cb64d984a
4 changed files with 10 additions and 15 deletions
+2 -2
View File
@@ -29,10 +29,10 @@ EeFs eeFs;
#if defined(CPUARM)
blkid_t freeBlocks = 0;
#else
uint8_t s_sync_write = false;
#endif
uint8_t s_sync_write = false;
static uint8_t EeFsRead(blkid_t blk, uint8_t ofs)
{
uint8_t byte;
+3 -10
View File
@@ -117,19 +117,12 @@ class EFile
#define ERR_NONE 0
#define ERR_FULL 1
extern uint8_t s_write_err; // error reasons
extern uint8_t s_write_err; // error reasons
inline uint8_t write_errno() { return s_write_err; }
#if defined(CPUARM)
#define ENABLE_SYNC_WRITE(val)
#define IS_SYNC_WRITE_ENABLE() true
#else
extern uint8_t s_sync_write;
#define ENABLE_SYNC_WRITE(val) s_sync_write = val;
#define IS_SYNC_WRITE_ENABLE() s_sync_write
#endif
///deliver current errno, this is reset in open
inline uint8_t write_errno() { return s_write_err; }
class RlcFile: public EFile
{