1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

GCS Uploader: Add a backward compatibility condition for RM1 using RM2 firmware

This commit is contained in:
James Cotton 2012-10-02 09:37:55 -05:00
parent 879dfed288
commit 71e1a14e93

View File

@ -353,7 +353,9 @@ void deviceWidget::uploadFirmware()
int board = m_dfu->devices[deviceID].ID;
int firmwareBoard = ((desc.at(12)&0xff)<<8) + (desc.at(13)&0xff);
if((board == 0x401 && firmwareBoard == 0x402) ||
(board == 0x901 && firmwareBoard == 0x902)) {
(board == 0x901 && firmwareBoard == 0x902) || // L3GD20 revo supports Revolution firmware
(board == 0x902 && firmwareBoard == 0x903)) // RevoMini1 supporetd by RevoMini2 firmware
{
// These firmwares are designed to be backwards compatible
} else if (firmwareBoard != board) {
status("Error: firmware does not match board", STATUSICON_FAIL);