fix(api): change version check error to warning

This commit is contained in:
TinyOh 2019-03-13 15:37:44 +08:00
parent ecb8cd640a
commit 3c4f8b986b

View File

@ -46,10 +46,10 @@ static const firmware_version_match_table_unit FSVM_TABLE[] ={
{"MYNT-EYE-S1030", "<2.3.1", "<2.2.0", WARN_DESCRIPTION_S}, {"MYNT-EYE-S1030", "<2.3.1", "<2.2.0", WARN_DESCRIPTION_S},
/** S2100 */ /** S2100 */
{"MYNT-EYE-S2100", ">2.3.0", ">0.0", PASS_DESCRIPTION}, {"MYNT-EYE-S2100", ">2.3.0", ">0.0", PASS_DESCRIPTION},
{"MYNT-EYE-S2100", "<2.3.1", ">0.0", ERRO_DESCRIPTION_S}, {"MYNT-EYE-S2100", "<2.3.1", ">0.0", WARN_DESCRIPTION_S},
/** S210A */ /** S210A */
{"MYNT-EYE-S210A", ">2.3.0", ">0.0", PASS_DESCRIPTION}, {"MYNT-EYE-S210A", ">2.3.0", ">0.0", PASS_DESCRIPTION},
{"MYNT-EYE-S210A", "<2.3.1", ">0.0", ERRO_DESCRIPTION_S}, {"MYNT-EYE-S210A", "<2.3.1", ">0.0", WARN_DESCRIPTION_S},
}; };
void getVersion(const std::string &str, char *version) { void getVersion(const std::string &str, char *version) {