feat: 增加通信内容

This commit is contained in:
2024-03-30 11:51:14 +08:00
parent a9b488bc6e
commit add61d0af3
5 changed files with 32 additions and 20 deletions

View File

@@ -35,7 +35,7 @@
#include "by_frame.h"
#include "by_rt_button.h"
#include "by_fan_control.h"
uint8_t last_state;
int main(void)
{
TYPE_UNION test_data[BY_FRAME_DATA_NUM];
@@ -69,6 +69,11 @@ int main(void)
jj_bt_run();
in_pos = test_data[1].f32;
in_angle = test_data[0].f32;
in_state= test_data[2].u32;
in_state = test_data[2].u8[0];
in_stop = test_data[2].u8[1];
if (last_state != in_state) {
bt_printf("changing to%u\r\n",in_state);
}
last_state = in_state;
}
}