mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 18:17:34 +08:00
committed by
Lorenz Meier
parent
1d99f83b34
commit
22d286b9ce
@@ -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