Skip to content

Commit

Permalink
OSDK 3.2.1: Fix for a bug in M600/pro FW package 1.0.0.80's veriosning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Sant committed Feb 4, 2017
1 parent f4453c0 commit 5c1aca0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions osdk-core/src/DJI_API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ bool CoreAPI::parseDroneVersionInfo(unsigned char *ackPtrIncoming) {
ver3 = 10*ver3;
this->versionData.fwVersion = MAKE_VERSION(ver1, ver2, ver3, ver4);
}
//! M600/A3 FW 3.2.10
if (versionData.fwVersion == MAKE_VERSION(3,2,10,0)) {
//! Bug in M600 does not report the right FW.
ver3 = 10*ver3;
this->versionData.fwVersion = MAKE_VERSION(ver1, ver2, ver3, ver4);
}

//! Now, we can parse the CRC and ID based on FW version. If it's older than 3.2 then it'll have a CRC, else not.
if (this->versionData.fwVersion < MAKE_VERSION(3,2,0,0)) {
Expand Down

0 comments on commit 5c1aca0

Please sign in to comment.