Fixed advertising issue with part7

This commit is contained in:
Adam Greenwood-Byrne 2021-02-15 09:19:13 +00:00
parent 6dd0ab424e
commit 9d8d9d65ad
4 changed files with 4 additions and 2 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View file

@ -275,7 +275,7 @@ void setLEadvertparameters(unsigned char type, unsigned char linterval_min, unsi
}
void setLEadvertdata() {
volatile unsigned char command[32] = {
static unsigned char command[32] = {
0x19,
0x02, 0x01, 0x06,
0x03, 0x03, 0xAA, 0xFE,

View file

@ -1,5 +1,4 @@
#define PERIPHERAL_BASE 0xFE000000
#define SAFE_ADDRESS 0x00210000 // Somewhere safe to store a lot of data
void uart_init();
void uart_writeText(char *buffer);

View file

@ -257,6 +257,9 @@ void main()
for (int c=5;c>=0;c--) debugch(local_addr[c]);
debugcrlf();
// Test out the advertising
// run_eddystone();
// Test out the scanning
run_search();
}