From 99abae6f50e08471942d264f51db4d40fc1b3e64 Mon Sep 17 00:00:00 2001 From: rbaron Date: Tue, 15 Mar 2022 08:56:06 +0100 Subject: [PATCH] Adds comment about valid BLE protocol versions --- code/b-parasite/config/prst_config.h | 2 +- code/b-parasite/src/prst/ble.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/b-parasite/config/prst_config.h b/code/b-parasite/config/prst_config.h index 2aa2393..ad8b241 100644 --- a/code/b-parasite/config/prst_config.h +++ b/code/b-parasite/config/prst_config.h @@ -29,7 +29,7 @@ // Prints out BLE debug info, such as the final encoded advertisement packet. #define PRST_BLE_DEBUG 0 // The BLE protocol version defines how the sensors' data is encoded inside the -// BLE advertisement packet. +// BLE advertisement packet. Possible values are 1 and 2. #define PRST_BLE_PROTOCOL_VERSION 1 // There are two options for configuring the MAC address of b-parasites: diff --git a/code/b-parasite/src/prst/ble.c b/code/b-parasite/src/prst/ble.c index 573c40e..d4d8cde 100644 --- a/code/b-parasite/src/prst/ble.c +++ b/code/b-parasite/src/prst/ble.c @@ -178,7 +178,7 @@ void prst_ble_update_adv_data(uint16_t batt_millivolts, float temp_celsius, service_data[4] = temp_centicelsius >> 8; service_data[5] = temp_centicelsius & 0xff; #else -#error "[ble] Unsupported BLE protocol version" +#error "[ble] Unsupported BLE protocol version" #endif // PRST_BLE_PROTOCOL_VERSION service_data[6] = humidity >> 8;