From 12412e6be87a04735bcc1cbe1af37c2573918963 Mon Sep 17 00:00:00 2001 From: Adam Greenwood-Byrne Date: Mon, 15 Feb 2021 17:26:21 +0000 Subject: [PATCH] Fixed typos --- part7-bluetooth/README.md | 2 +- part7-bluetooth/bt.c | 2 +- part8-breakout-ble/bt.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/part7-bluetooth/README.md b/part7-bluetooth/README.md index e581a2a..247d112 100644 --- a/part7-bluetooth/README.md +++ b/part7-bluetooth/README.md @@ -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 diff --git a/part7-bluetooth/bt.c b/part7-bluetooth/bt.c index d43783a..fa5cf8e 100644 --- a/part7-bluetooth/bt.c +++ b/part7-bluetooth/bt.c @@ -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) { diff --git a/part8-breakout-ble/bt.c b/part8-breakout-ble/bt.c index d43783a..fa5cf8e 100644 --- a/part8-breakout-ble/bt.c +++ b/part8-breakout-ble/bt.c @@ -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) {