feat: 增加通信内容
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user