mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Merge remote-tracking branch 'OFW/hedger/more-constness' into dev [ci skip]
This commit is contained in:
@@ -46,7 +46,7 @@ static void ble_profile_serial_stop(FuriHalBleProfileBase* profile) {
|
||||
// Up to 45 ms
|
||||
#define CONNECTION_INTERVAL_MAX (0x24)
|
||||
|
||||
static GapConfig serial_template_config = {
|
||||
static const GapConfig serial_template_config = {
|
||||
.adv_service_uuid = 0x3080,
|
||||
.appearance_char = 0x8600,
|
||||
.bonding_mode = true,
|
||||
@@ -80,7 +80,7 @@ static const FuriHalBleProfileTemplate profile_callbacks = {
|
||||
.get_gap_config = ble_profile_serial_get_config,
|
||||
};
|
||||
|
||||
const FuriHalBleProfileTemplate* ble_profile_serial = &profile_callbacks;
|
||||
const FuriHalBleProfileTemplate* const ble_profile_serial = &profile_callbacks;
|
||||
|
||||
void ble_profile_serial_set_event_callback(
|
||||
FuriHalBleProfileBase* profile,
|
||||
|
||||
@@ -19,7 +19,7 @@ typedef enum {
|
||||
typedef SerialServiceEventCallback FuriHalBtSerialCallback;
|
||||
|
||||
/** Serial profile descriptor */
|
||||
extern const FuriHalBleProfileTemplate* ble_profile_serial;
|
||||
extern const FuriHalBleProfileTemplate* const ble_profile_serial;
|
||||
|
||||
/** Send data through BLE
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user