diff --git a/APP/peripheral.c b/APP/peripheral.c index 6952739..47b8e37 100644 --- a/APP/peripheral.c +++ b/APP/peripheral.c @@ -55,7 +55,7 @@ #define SBP_PHY_UPDATE_DELAY (1600 * 2) // What is the advertising interval when device is discoverable (units of 625us, 80=50ms) -#define DEFAULT_ADVERTISING_INTERVAL (160 * 1) +#define DEFAULT_ADVERTISING_INTERVAL (160 * 10) // Limited discoverable mode advertises for 30.72s, and then stops // General discoverable mode advertises indefinitely diff --git a/HAL/MCU.c b/HAL/MCU.c index 612d895..c7cae20 100644 --- a/HAL/MCU.c +++ b/HAL/MCU.c @@ -156,11 +156,11 @@ void CH59x_BLEInit(void) { uint8_t MacAddr[6]; GetMACAddress(MacAddr); - for(i = 0; i < 6; i++) - { - cfg.MacAddr[i] = MacAddr[i]; // 使用芯片mac地址 - PRINT("MacAddr[%d]: %x\n", i, MacAddr[i]); - } + // for(i = 0; i < 6; i++) + // { + // cfg.MacAddr[i] = MacAddr[i]; // 使用芯片mac地址 + // PRINT("MacAddr[%d]: %x\n", i, MacAddr[i]); + // } } #endif if(!cfg.MEMAddr || cfg.MEMLen < 4 * 1024)