[Companion] Compilation fix
This commit is contained in:
@@ -44,7 +44,7 @@ eepromFatHeader(NULL)
|
||||
#define EEPROM_MAX_FILES (EEPROM_MAX_ZONES - 1)
|
||||
#define FIRST_FILE_AVAILABLE (1+MAX_MODELS)
|
||||
|
||||
void RleFile::EeFsCreate(uint8_t *eeprom, int size, BoardEnum board, unsigned int version)
|
||||
void RleFile::EeFsCreate(uint8_t *eeprom, int size, Board::Type board, unsigned int version)
|
||||
{
|
||||
this->eeprom = eeprom;
|
||||
this->eeprom_size = size;
|
||||
@@ -86,7 +86,7 @@ void RleFile::EeFsCreate(uint8_t *eeprom, int size, BoardEnum board, unsigned in
|
||||
}
|
||||
else {
|
||||
eeFs = (EeFs *)eeprom;
|
||||
eeFsVersion = (IS_2560(board) || board==BOARD_M128) ? 5 : 4;
|
||||
eeFsVersion = (IS_2560(board) || board==Board::BOARD_M128) ? 5 : 4;
|
||||
eeFsBlockSize = 16;
|
||||
eeFsLinkSize = 1;
|
||||
|
||||
@@ -136,7 +136,7 @@ bool RleFile::searchFat()
|
||||
return (eepromFatHeader != NULL);
|
||||
}
|
||||
|
||||
bool RleFile::EeFsOpen(uint8_t *eeprom, int size, BoardEnum board)
|
||||
bool RleFile::EeFsOpen(uint8_t *eeprom, int size, Board::Type board)
|
||||
{
|
||||
this->eeprom = eeprom;
|
||||
this->eeprom_size = size;
|
||||
|
||||
@@ -90,7 +90,7 @@ class RleFile
|
||||
unsigned int m_err; //error reasons
|
||||
uint16_t m_size;
|
||||
|
||||
BoardEnum board;
|
||||
Board::Type board;
|
||||
unsigned int version;
|
||||
uint8_t *eeprom;
|
||||
unsigned int eeprom_size;
|
||||
@@ -125,9 +125,9 @@ public:
|
||||
|
||||
RleFile();
|
||||
|
||||
void EeFsCreate(uint8_t *eeprom, int size, BoardEnum board, unsigned int version);
|
||||
void EeFsCreate(uint8_t *eeprom, int size, Board::Type board, unsigned int version);
|
||||
|
||||
bool EeFsOpen(uint8_t *eeprom, int size, BoardEnum board);
|
||||
bool EeFsOpen(uint8_t *eeprom, int size, Board::Type board);
|
||||
|
||||
///open file for reading, no close necessary
|
||||
///for writing use writeRlc() or create()
|
||||
|
||||
@@ -45,7 +45,7 @@ class StorageFormat
|
||||
StorageFormat(const QString & filename, uint8_t version=0):
|
||||
filename(filename),
|
||||
version(version),
|
||||
board(BOARD_UNKNOWN)
|
||||
board(Board::BOARD_UNKNOWN)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class StorageFormat
|
||||
|
||||
virtual QString name() = 0;
|
||||
|
||||
virtual BoardEnum getBoard() {
|
||||
virtual Board::Type getBoard() {
|
||||
return board;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ class StorageFormat
|
||||
uint8_t version;
|
||||
QString _error;
|
||||
QString _warning;
|
||||
BoardEnum board;
|
||||
Board::Type board;
|
||||
};
|
||||
|
||||
class StorageFactory
|
||||
|
||||
@@ -157,7 +157,7 @@ void saveModel(ModelData & m, model & xm)
|
||||
phases::phase_sequence & phases_sequence (xphases.phase());
|
||||
for (int i=0; i<CPN_MAX_FLIGHT_MODES; i++) {
|
||||
FlightModeData & p = m.flightModeData[i];
|
||||
if (i == 0 || p.swtch.type!=SWITCH_TYPE_NONE) {
|
||||
if (i == 0 || p.swtch.type!=Board::SWITCH_TYPE_NONE) {
|
||||
TrimType xtrim[4];
|
||||
for (int j=0; j<4; j++) {
|
||||
if (m.flightModeData[i].trimRef[j] >= 0)
|
||||
|
||||
Reference in New Issue
Block a user