Adds comment about valid BLE protocol versions
This commit is contained in:
parent
0d307d8ef5
commit
99abae6f50
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue