mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 08:40:30 +08:00
1 parent
1d99f83b34
commit
22d286b9ce
1 file changed
+5
@@ -162,6 +162,11 @@ uint32_t version_tag_to_number(const char *tag)
|
||||
type = FIRMWARE_TYPE_DEV;
|
||||
}
|
||||
|
||||
/* looks like a release */
|
||||
if (type == -1) {
|
||||
type = FIRMWARE_TYPE_RELEASE;
|
||||
}
|
||||
|
||||
ver = (ver << 8);
|
||||
|
||||
return ver | type;
|
||||
|
||||
Reference in new issue
Block a user