Adds comment about valid BLE protocol versions

This commit is contained in:
rbaron 2022-03-15 08:56:06 +01:00
parent 0d307d8ef5
commit 99abae6f50
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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;