mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-24 03:00:39 +00:00
Fixed advertising issue with part7
This commit is contained in:
parent
6dd0ab424e
commit
9d8d9d65ad
4 changed files with 4 additions and 2 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue