Commit c8393c46 authored by 957dd's avatar 957dd

修复了部分bug

parent 2cf55b4b
#define _XOPEN_SOURCE 700 #define _XOPEN_SOURCE 700 //strptime(ts, "%Y%m%d%H%M", &tm)用这个非标准函数,不使用这2个的话无法使用
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "common.h" #include "common.h"
......
...@@ -117,7 +117,7 @@ int device_judg(CodeEnum_t code,char *sub_str) { ...@@ -117,7 +117,7 @@ int device_judg(CodeEnum_t code,char *sub_str) {
}else if(code == CAR_0104) { }else if(code == CAR_0104) {
device_init(DEVICE_CAR0104); device_init(DEVICE_CAR0104);
my_zlog_info("使用推土机,使用型号%s",sub_str); my_zlog_info("使用推土机,使用型号%s",sub_str);
} if (code == CAR_0105) { }else if (code == CAR_0105) {
device_init(DEVICE_CAR0105); device_init(DEVICE_CAR0105);
my_zlog_info("使用人坐超大车,型号%s",sub_str); my_zlog_info("使用人坐超大车,型号%s",sub_str);
}else if(code == TANK_0202) { }else if(code == TANK_0202) {
...@@ -150,7 +150,6 @@ int device_judg(CodeEnum_t code,char *sub_str) { ...@@ -150,7 +150,6 @@ int device_judg(CodeEnum_t code,char *sub_str) {
}else { }else {
my_zlog_error("没有找到设备号,尝试启用备用mqtt,topic进行改名"); my_zlog_error("没有找到设备号,尝试启用备用mqtt,topic进行改名");
g_device_name_exists_s=1; g_device_name_exists_s=1;
} }
return 0; return 0;
} }
......
No preview for this file type
This diff is collapsed.
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