feat: 为通信帧解析完成回调函数添加帧信息入参(以便命令函数校验成功与否)
This commit is contained in:
@@ -35,8 +35,10 @@
|
||||
#include "by_tiny_frame_pack.h"
|
||||
/** 测试完成后移除 **/
|
||||
|
||||
void test(uint8_t status)
|
||||
void test(by_tf_parse_frame_t frame_s, uint8_t status)
|
||||
{
|
||||
printf("parse done\r\n");
|
||||
printf("--cmd: %0.2X\n--reg_addr: %0.4X\n--data: %0.8X\r\n", frame_s.cmd, frame_s.reg_addr, frame_s.data);
|
||||
if (status) {
|
||||
printf("noooooooo!\r\n");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user