mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-08 19:30:39 +00:00
Fixed typos
This commit is contained in:
parent
4c428582f6
commit
12412e6be8
3 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ Building an Eddystone beacon
|
|||
|
||||
Perhaps the simplest Bluetooth device to build is a "beacon". It simply advertises a small amount of data publicly, such that any passing receivers can view the data. A typical use case is to advertise a web URL for location-based marketing purposes.
|
||||
|
||||
Google defined the [Eddystone format](https://en.wikipedia.org/wiki/Eddystone_(Google)), which was reasonably widely adopted. We'll iomplement this as our example. Here's what we need to achieve:
|
||||
Google defined the [Eddystone format](https://en.wikipedia.org/wiki/Eddystone_(Google)), which was reasonably widely adopted. We'll implement this as our example. Here's what we need to achieve:
|
||||
|
||||
* Set the LE event mask to ensure that the Bluetooth controller is interrupted by all incoming traffic
|
||||
* Set advertising parameters
|
||||
|
|
|
@ -238,7 +238,7 @@ void setLEscanenable(unsigned char state, unsigned char duplicates) {
|
|||
volatile unsigned char command[2];
|
||||
command[0] = state;
|
||||
command[1] = duplicates;
|
||||
if (hciCommand(OGF_LE_CONTROL, 0x0c, command, 2)) uart_writeText(" setLEscanenable failed\n");
|
||||
if (hciCommand(OGF_LE_CONTROL, 0x0c, command, 2)) uart_writeText("setLEscanenable failed\n");
|
||||
}
|
||||
|
||||
void setLEscanparameters(unsigned char type, unsigned char linterval, unsigned char hinterval, unsigned char lwindow, unsigned char hwindow, unsigned char own_address_type, unsigned char filter_policy) {
|
||||
|
|
|
@ -238,7 +238,7 @@ void setLEscanenable(unsigned char state, unsigned char duplicates) {
|
|||
volatile unsigned char command[2];
|
||||
command[0] = state;
|
||||
command[1] = duplicates;
|
||||
if (hciCommand(OGF_LE_CONTROL, 0x0c, command, 2)) uart_writeText(" setLEscanenable failed\n");
|
||||
if (hciCommand(OGF_LE_CONTROL, 0x0c, command, 2)) uart_writeText("setLEscanenable failed\n");
|
||||
}
|
||||
|
||||
void setLEscanparameters(unsigned char type, unsigned char linterval, unsigned char hinterval, unsigned char lwindow, unsigned char hwindow, unsigned char own_address_type, unsigned char filter_policy) {
|
||||
|
|
Loading…
Reference in a new issue