Commit 571786e4 by guanghui.cui

添加版本号信息

parent 1e682164
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
INITIALIZE_EASYLOGGINGPP INITIALIZE_EASYLOGGINGPP
#define VERSION "1.0.2" //版本号
std::string g_init_data; std::string g_init_data;
std::string g_init_data_ods_back; std::string g_init_data_ods_back;
...@@ -238,8 +239,12 @@ void* listen_pos_func(void* arg) ...@@ -238,8 +239,12 @@ void* listen_pos_func(void* arg)
// } // }
int main() int main(int argc,char *argv[])
{ {
if (2 == argc && 0 == strcmp("-v", argv[1])) {
printf("version:%s\n", VERSION);
return 0;
}
/* Mark /* Mark
* 与ODS通信全部加数据头(长度) * 与ODS通信全部加数据头(长度)
* 与POS通信全部不加数据头 * 与POS通信全部不加数据头
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment