stop run cmd
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
#include "chrg_roll_nor.h"
|
||||
#include "chrg_switch.h"
|
||||
#include "chrg_utils.h"
|
||||
#include "ulog.h"
|
||||
|
||||
#define LOG_TAG "chrg.nor"
|
||||
//#define LOG_TAG "chrg.nor"
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#include <rtdbg.h>
|
||||
|
||||
@@ -51,6 +52,7 @@ int chrg_north_send (rt_uint8_t *data, rt_size_t length)
|
||||
struct chrg_tty_t *pTTY = chrgnorth.tty;
|
||||
|
||||
if (RT_NULL != pTTY) {
|
||||
LOG_HEX("sendN", 32, data, length);
|
||||
ret = chrg_tty_send(pTTY, data, length);
|
||||
}
|
||||
|
||||
@@ -249,6 +251,7 @@ void chrg_north_thread_entry (void *data)
|
||||
}
|
||||
|
||||
rt_ringbuffer_put(pNOR->rb, pNOR->rx_buf, len);
|
||||
LOG_HEX("recvN", 32, pNOR->rx_buf, len);
|
||||
|
||||
if (1 == pNOR->frame.findhead) {
|
||||
if (rt_tick_get() >= pNOR->frame.last_tick + 100) { // 100ms
|
||||
|
||||
Reference in New Issue
Block a user