ok,回去main
This commit is contained in:
parent
c23b7e1804
commit
7fc07d561d
|
@ -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
|
||||
|
|
10
HAL/MCU.c
10
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)
|
||||
|
|
Loading…
Reference in New Issue