This commit is contained in:
lmx
2025-11-26 11:25:20 +08:00
parent 8089cf5b3a
commit 6b8d9ea6a0
27 changed files with 151096 additions and 150478 deletions

View File

@ -45,6 +45,7 @@
#include "default_event_handler.h"
#include "debug.h"
#include "system/event.h"
#include "../remote_control/nvs.h"
///////////////////////////////////////////////////////////////////////////////////////////////////
//宏定义
#define LOG_TAG_CONST EARPHONE
@ -209,6 +210,13 @@ void le_user_app_event_handler(struct sys_event* event){
if (event->u.app.buffer[0] == 0xBE && event->u.app.buffer[1] == 0xBB) {
if(event->u.app.buffer[2] == 0x01){ //后面的数据长度 1
switch (event->u.app.buffer[3]){
case 0x01:
nvs_test_factory_info();
break;
case 0x02:
factory_info_t read_info;;
nvs_read_factory_info(&read_info);
break;
case 0xff: //测试
extern void i2c_scanner_probe(void);
// i2c_scanner_probe();