summaryrefslogtreecommitdiff
path: root/sensor/patchedBLE/src/BLE2904.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sensor/patchedBLE/src/BLE2904.cpp')
-rw-r--r--sensor/patchedBLE/src/BLE2904.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/sensor/patchedBLE/src/BLE2904.cpp b/sensor/patchedBLE/src/BLE2904.cpp
index 4423ed8..02252a1 100644
--- a/sensor/patchedBLE/src/BLE2904.cpp
+++ b/sensor/patchedBLE/src/BLE2904.cpp
@@ -21,7 +21,7 @@ BLE2904::BLE2904() : BLEDescriptor(BLEUUID((uint16_t) 0x2904)) {
m_data.m_namespace = 1; // 1 = Bluetooth SIG Assigned Numbers
m_data.m_unit = 0;
m_data.m_description = 0;
- setValue((uint8_t*)&m_data, sizeof(m_data));
+ setValue((uint8_t*) &m_data, sizeof(m_data));
} // BLE2902
@@ -30,7 +30,7 @@ BLE2904::BLE2904() : BLEDescriptor(BLEUUID((uint16_t) 0x2904)) {
*/
void BLE2904::setDescription(uint16_t description) {
m_data.m_description = description;
- setValue((uint8_t*)&m_data, sizeof(m_data));
+ setValue((uint8_t*) &m_data, sizeof(m_data));
}
@@ -39,7 +39,7 @@ void BLE2904::setDescription(uint16_t description) {
*/
void BLE2904::setExponent(int8_t exponent) {
m_data.m_exponent = exponent;
- setValue((uint8_t*)&m_data, sizeof(m_data));
+ setValue((uint8_t*) &m_data, sizeof(m_data));
} // setExponent
@@ -48,7 +48,7 @@ void BLE2904::setExponent(int8_t exponent) {
*/
void BLE2904::setFormat(uint8_t format) {
m_data.m_format = format;
- setValue((uint8_t*)&m_data, sizeof(m_data));
+ setValue((uint8_t*) &m_data, sizeof(m_data));
} // setFormat
@@ -57,18 +57,18 @@ void BLE2904::setFormat(uint8_t format) {
*/
void BLE2904::setNamespace(uint8_t namespace_value) {
m_data.m_namespace = namespace_value;
- setValue((uint8_t*)&m_data, sizeof(m_data));
+ setValue((uint8_t*) &m_data, sizeof(m_data));
} // setNamespace
/**
* @brief Set the units for this value. It should be one of the encoded values defined here:
* https://www.bluetooth.com/specifications/assigned-numbers/units
- * @param [in] uint The type of units of this characteristic as defined by assigned numbers.
+ * @param [in] unit The type of units of this characteristic as defined by assigned numbers.
*/
void BLE2904::setUnit(uint16_t unit) {
m_data.m_unit = unit;
- setValue((uint8_t*)&m_data, sizeof(m_data));
+ setValue((uint8_t*) &m_data, sizeof(m_data));
} // setUnit
#endif