Skip to content

Commit

Permalink
Merge branch 'aku/copro_v1.19.0' of https://github.com/flipperdevices…
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Apr 9, 2024
2 parents de9eadd + 6776bda commit bb25b6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/ble_profile/extra_profiles/hid_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ static GapConfig template_config = {
.pairing_method = GapPairingPinCodeVerifyYesNo,
.conn_param =
{
.conn_int_min = 0x18, // 30 ms
.conn_int_max = 0x24, // 45 ms
.conn_int_min = 0x18, // AN5289: 4.7, we need at least 25ms + advertisement, which is 30 ms
.conn_int_max = 0x18, // 30 ms
.slave_latency = 0,
.supervisor_timeout = 0,
},
Expand Down
3 changes: 2 additions & 1 deletion targets/f7/ble_glue/extra_beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#define GAP_MS_TO_SCAN_INTERVAL(x) ((uint16_t)((x) / 0.625))

// Also used as an indicator of whether the beacon had ever been configured
#define GAP_MIN_ADV_INTERVAL_MS (20)
// AN5289: 4.7, we need at least 25ms + advertisement, which is 30 ms
#define GAP_MIN_ADV_INTERVAL_MS (30u)

typedef struct {
GapExtraBeaconConfig last_config;
Expand Down
4 changes: 2 additions & 2 deletions targets/f7/ble_glue/profiles/serial_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static GapConfig serial_template_config = {
.bonding_mode = true,
.pairing_method = GapPairingPinCodeShow,
.conn_param = {
.conn_int_min = 0x18, // 30 ms
.conn_int_max = 0x24, // 45 ms
.conn_int_min = 0x18, // AN5289: 4.7, we need at least 25ms + advertisement, which is 30 ms
.conn_int_max = 0x18, // 30 ms
.slave_latency = 0,
.supervisor_timeout = 0,
}};
Expand Down

0 comments on commit bb25b6d

Please sign in to comment.