ok,回去main

This commit is contained in:
stark1898y 2024-12-15 17:19:26 +08:00
parent c23b7e1804
commit 7fc07d561d
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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)