关闭485部分debug信息,避免刷屏
更新版本号为2.1d
This commit is contained in:
parent
c115affb6b
commit
8801a784c6
@ -57,7 +57,7 @@ static rt_err_t uart485_input(rt_device_t dev, rt_size_t size)
|
||||
cachecnt += size;
|
||||
if (cachecnt < 63) {
|
||||
// LOG_W("not enough data[%d byte(s)], cached and waiting...",size);//处理半包
|
||||
LOG_D("%d byte(s)",size);
|
||||
// LOG_D("%d byte(s)",size);
|
||||
return -1;
|
||||
}
|
||||
msg.dev = dev;
|
||||
@ -187,7 +187,7 @@ static void T485_thread_entry(void *parameter)
|
||||
rt_pin_write(TR485_RE, PIN_HIGH);
|
||||
rt_device_write(serial485, 0, cmd, sizeof(cmd));
|
||||
rt_pin_write(TR485_RE, PIN_LOW);
|
||||
LOG_D("send 485");
|
||||
// LOG_D("send 485");
|
||||
}
|
||||
rt_thread_mdelay(10*1000);
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ void show_version(void)
|
||||
char str[30];
|
||||
uint8_t t[10];
|
||||
size_t len=time2Byte(t);
|
||||
rt_kprintf("SW Version: %s, build-%s\n","1.9d",bytes2str(t, 3, 10, "", str));
|
||||
rt_kprintf("SW Version: %s, build-%s\n","2.1d",bytes2str(t, 3, 10, "", str));
|
||||
}
|
||||
|
||||
MSH_CMD_EXPORT(show_version,显示版本号);
|
||||
|
Loading…
Reference in New Issue
Block a user