diff --git a/companion/src/radiointerface.cpp b/companion/src/radiointerface.cpp index 741cd054b..47b37668e 100755 --- a/companion/src/radiointerface.cpp +++ b/companion/src/radiointerface.cpp @@ -38,9 +38,7 @@ QStringList getAvrdudeArgs(const QString &cmd, const QString &filename) QString mcu = bcd.getMCU(); args << "-c" << programmer << "-p"; - if (GetEepromInterface()->getBoard() == BOARD_GRUVIN9X) - args << "m2560"; - else if (GetEepromInterface()->getBoard() == BOARD_MEGA2560) + if (IS_2560(GetEepromInterface()->getBoard())) args << "m2560"; else if (GetEepromInterface()->getBoard() == BOARD_M128) args << "m128";