diff options
author | Ben V. Brown <[email protected]> | 2023-02-20 11:53:15 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-20 11:53:15 +1100 |
commit | f29ec5cd99cdf1466a65863f10776afa063e2472 (patch) | |
tree | 68d4fa459aa2ed01370d2159f79b3742c381b8f2 /source/Core/BSP | |
parent | eb5d6ea9fd6acd221b8880650728e13968e54d3d (diff) | |
parent | 669e3819e8caa50800c0b1a988ede6a97c8d4b62 (diff) | |
download | IronOS-f29ec5cd99cdf1466a65863f10776afa063e2472.tar.gz IronOS-f29ec5cd99cdf1466a65863f10776afa063e2472.zip |
Merge pull request #1582 from Samuelrmlink/PPSctrl
Added VPDO option for disabling PPS/EPR PDOs.
Diffstat (limited to 'source/Core/BSP')
-rw-r--r-- | source/Core/BSP/Pinecilv2/ble_characteristics.h | 3 | ||||
-rw-r--r-- | source/Core/BSP/Pinecilv2/ble_peripheral.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source/Core/BSP/Pinecilv2/ble_characteristics.h b/source/Core/BSP/Pinecilv2/ble_characteristics.h index fb8d39a3..a782e6c8 100644 --- a/source/Core/BSP/Pinecilv2/ble_characteristics.h +++ b/source/Core/BSP/Pinecilv2/ble_characteristics.h @@ -88,5 +88,6 @@ #define BT_UUID_CHAR_BLE_SETTINGS_VALUE_35 BT_UUID_DECLARE_16(35) #define BT_UUID_CHAR_BLE_SETTINGS_VALUE_36 BT_UUID_DECLARE_16(36) #define BT_UUID_CHAR_BLE_SETTINGS_VALUE_37 BT_UUID_DECLARE_16(37) +#define BT_UUID_CHAR_BLE_SETTINGS_VALUE_38 BT_UUID_DECLARE_16(37) -#endif
\ No newline at end of file +#endif diff --git a/source/Core/BSP/Pinecilv2/ble_peripheral.c b/source/Core/BSP/Pinecilv2/ble_peripheral.c index 8127034a..de7090f5 100644 --- a/source/Core/BSP/Pinecilv2/ble_peripheral.c +++ b/source/Core/BSP/Pinecilv2/ble_peripheral.c @@ -243,6 +243,8 @@ static struct bt_gatt_attr attrs[] = { ble_char_read_setting_value_callback, ble_char_write_setting_value_callback, NULL), BT_GATT_CHARACTERISTIC(BT_UUID_CHAR_BLE_SETTINGS_VALUE_37, BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE | BT_GATT_CHRC_WRITE_WITHOUT_RESP, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE, ble_char_read_setting_value_callback, ble_char_write_setting_value_callback, NULL), + BT_GATT_CHARACTERISTIC(BT_UUID_CHAR_BLE_SETTINGS_VALUE_38, BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE | BT_GATT_CHRC_WRITE_WITHOUT_RESP, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE, + ble_char_read_setting_value_callback, ble_char_write_setting_value_callback, NULL), BT_GATT_CHARACTERISTIC(BT_UUID_CHAR_BLE_SETTINGS_VALUE_SAVE, BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE | BT_GATT_CHRC_WRITE_WITHOUT_RESP, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE, ble_char_read_setting_value_callback, ble_char_write_setting_value_callback, NULL), @@ -288,4 +290,4 @@ void bt_enable_cb(int err) { bt_gatt_service_register(&ble_tp_server); ble_start_adv(); -}
\ No newline at end of file +} |