整理代码

This commit is contained in:
xinyang
2019-08-14 11:48:41 +08:00
parent 9d94de939b
commit 20d95b3f81
11 changed files with 124 additions and 91 deletions

View File

@@ -19,6 +19,7 @@ bool show_process = false;
bool show_energy = false;
bool save_mark = false;
bool show_info = false;
bool run_by_frame = false;
// 使用map保存所有选项及其描述和操作加快查找速度。
std::map<std::string, std::pair<std::string, void(*)(void)>> options = {
@@ -78,6 +79,12 @@ std::map<std::string, std::pair<std::string, void(*)(void)>> options = {
LOGM("Enable wait uart!");
}
}},
{"--run-by-frame",{
"run the code frame by frame.(normally used when run video)", [](){
run_by_frame = true;
LOGM("Enable run frame by frame");
}
}},
{"--show-process", {
"", [](){
show_process = true;