[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:
Bertrand Songis
2017-01-25 15:32:30 +01:00
parent 362698484f
commit b53ec7392c
4 changed files with 16 additions and 3 deletions
+13 -1
View File
@@ -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)
{