feat(tools): enhance device writer with new format

This commit is contained in:
John Zhao
2019-01-06 13:30:48 +08:00
parent 656c101e80
commit 19e5f60566
16 changed files with 432 additions and 46 deletions

View File

@@ -43,6 +43,7 @@ std::vector<std::string> Version::split(const std::string &s) {
}
Version::value_t Version::parse_part(const std::string &name, size_t part) {
if (name.empty()) return 0;
return std::stoi(split(name)[part]);
}