Skip to content

Commit

Permalink
Removed -T indication from M10 serial number.
Browse files Browse the repository at this point in the history
  • Loading branch information
darksidelemm committed Sep 21, 2019
1 parent e10dc43 commit cf9fc31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions m10/M10TrimbleParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,14 @@ std::string M10TrimbleParser::getSerialNumber() {
* - CC is the month of fabrication
* - D is the product type, 2 is production type
* - EEEE is the RS serial number
NOTE: Removed -T from callsign. 2019-09-21
*/

byte = sn_bytes[2];
sprintf(SN, "M10-T-%1X%02u", (byte >> 4)&0xF, byte & 0xF);
sprintf(SN, "M10-%1X%02u", (byte >> 4)&0xF, byte & 0xF);
byte = sn_bytes[3] | (sn_bytes[4] << 8);
sprintf(SN + 9, "-%1X-%1u%04u", sn_bytes[0]&0xF, (byte >> 13)&0x7, byte & 0x1FFF);
sprintf(SN + 7, "-%1X-%1u%04u", sn_bytes[0]&0xF, (byte >> 13)&0x7, byte & 0x1FFF);

return SN;
}
Expand Down

0 comments on commit cf9fc31

Please sign in to comment.