X10 extra switches sticks (#6423)

[X10] 2 extra sticks switches + 2 extra pots
This commit is contained in:
Bertrand Songis
2019-05-17 20:42:41 +02:00
committed by GitHub
parent 11cb2ea29b
commit 794fe32006
27 changed files with 390 additions and 166 deletions
+4 -4
View File
@@ -164,14 +164,14 @@ bool ModelCell::fetchRfData()
getModelPath(buf, modelFilename);
FIL file;
uint16_t file_size;
uint16_t size;
uint8_t version;
const char* err = openFile(buf,&file,&file_size);
if (err) return false;
const char * err = openFile(buf, &file, &size, &version);
if (err || version != EEPROM_VER) return false;
FSIZE_t start_offset = f_tell(&file);
UINT read;
if ((f_read(&file, buf, LEN_MODEL_NAME, &read) != FR_OK) || (read != LEN_MODEL_NAME))
goto error;