部分统一命名规范。

This commit is contained in:
xinyang
2019-08-05 09:54:50 +08:00
parent 13e1c383bc
commit 7337f10123
6 changed files with 9 additions and 9 deletions

View File

@@ -24,6 +24,6 @@ extern bool show_energy;
extern bool save_mark;
extern bool show_info;
void process_options(int argc, char *argv[]);
void processOptions(int argc, char **argv);
#endif /* _OPTIONS_H_ */

View File

@@ -26,7 +26,7 @@ extern WrapperHead *video_chassis;
extern Serial serial;
extern uint8_t last_state;
extern ArmorFinder armorFinder;
extern ArmorFinder armor_finder;
extern Energy energy;
void uartReceive(Serial *pSerial) {

View File

@@ -120,7 +120,7 @@ std::map<std::string, std::pair<std::string, void(*)(void)>> options = {
}}
};
void process_options(int argc, char *argv[]) {
void processOptions(int argc, char **argv) {
if (argc >= 2) {
for (int i = 1; i < argc; i++) {
auto key = options.find(std::string(argv[i])); // 寻找对应选项。