[Companion] OTX format bug with X9D boards
The files were always converted as X9D doesn't have its own FourCC
This commit is contained in:
@@ -62,10 +62,22 @@ class StorageFormat
|
||||
|
||||
virtual QString name() = 0;
|
||||
|
||||
virtual Board::Type getBoard() {
|
||||
virtual Board::Type getBoard()
|
||||
{
|
||||
return board;
|
||||
}
|
||||
|
||||
virtual bool isBoardCompatible(Board::Type board)
|
||||
{
|
||||
if (this->board == board)
|
||||
return true;
|
||||
|
||||
if (IS_TARANIS_X9D(this->board) && IS_TARANIS_X9D(board))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected:
|
||||
void setError(const QString & error)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user