Fix version generation for release builds, #5308 (#5422)

This commit is contained in:
Nate Weibley 2016-08-31 16:03:00 -04:00 committed by Lorenz Meier
parent 1d99f83b34
commit 22d286b9ce
1 changed files with 5 additions and 0 deletions

View File

@ -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;