stop run cmd

This commit is contained in:
wmano
2025-10-27 20:50:06 +08:00
parent 8b6f231b28
commit e7b859851b
16 changed files with 368 additions and 241 deletions
+4 -1
View File
@@ -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