Merge remote-tracking branch 'OFW/hedger/more-constness' into dev [ci skip]

This commit is contained in:
MX
2025-02-24 20:58:37 +03:00
68 changed files with 595 additions and 531 deletions

View File

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

View File

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