This commit is contained in:
lmx
2025-11-21 10:53:47 +08:00
parent 9ccf1acda8
commit bdadd5de1e
5 changed files with 51 additions and 29 deletions

View File

@ -49,6 +49,7 @@
#include "./sensor/MMC56.h"
#include "./sensor/BMP280.h"
#include "./sensor/AK8963.h"
#include "./calculate/skiing_tracker.h"
///////////////////////////////////////////////////////////////////////////////////////////////////
//宏定义
#define LOG_TAG_CONST EARPHONE
@ -220,8 +221,10 @@ void le_user_app_event_handler(struct sys_event* event){
extern void sensor_measure(void);
static int test_id;
SL_SC7U22_Config();
static skiing_tracker_t skiing_data;
skiing_tracker_init(&skiing_data);
create_process(&test_id, "test",NULL, sensor_measure, 10);
send_tmp = "start_detection\n";
send_tmp = "The test has begun.\n";
send_data_to_ble_client(send_tmp,strlen(send_tmp));
break;
case 0x03: