done with config clean up
This commit is contained in:
1 parent
2ddfe623f7
commit
92dc3ed5eb
3 files changed
+4
-6
No files matched your search
@@ -267,7 +267,7 @@ void BLEGap::_eventHandler(ble_evt_t* evt)
|
||||
|
||||
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
|
||||
{
|
||||
peer->att_mtu = minof(evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, BLEGATT_ATT_MTU_MAX);
|
||||
peer->att_mtu = minof(evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, Bluefruit.getMaxMtu());
|
||||
VERIFY_STATUS( sd_ble_gatts_exchange_mtu_reply(conn_handle, peer->att_mtu), );
|
||||
|
||||
LOG_LV1("GAP", "ATT MTU is changed to %d", peer->att_mtu);
|
||||
|
||||
@@ -44,8 +44,6 @@
|
||||
|
||||
/* Note changing these parameters will affect APP_RAM_BASE
|
||||
* --> need to update RAM region in linker file
|
||||
*
|
||||
* default value are
|
||||
* - BLEGATT_ATT_MTU_MAX from 23 (default) to 247
|
||||
*/
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ void BLEUart::bufferTXD(uint8_t enable)
|
||||
if ( _tx_fifo == NULL )
|
||||
{
|
||||
_tx_fifo = new Adafruit_FIFO(1);
|
||||
_tx_fifo->begin(BLEGATT_ATT_MTU_MAX);
|
||||
_tx_fifo->begin( Bluefruit.getMaxMtu() );
|
||||
}
|
||||
}else
|
||||
{
|
||||
@@ -182,7 +182,7 @@ err_t BLEUart::begin(void)
|
||||
_txd.setProperties(CHR_PROPS_NOTIFY);
|
||||
// TODO enable encryption when bonding is enabled
|
||||
_txd.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
|
||||
_txd.setMaxLen(BLEGATT_ATT_MTU_MAX);
|
||||
_txd.setMaxLen( Bluefruit.getMaxMtu() );
|
||||
_txd.setUserDescriptor("TXD");
|
||||
VERIFY_STATUS( _txd.begin() );
|
||||
|
||||
@@ -192,7 +192,7 @@ err_t BLEUart::begin(void)
|
||||
|
||||
// TODO enable encryption when bonding is enabled
|
||||
_rxd.setPermission(SECMODE_NO_ACCESS, SECMODE_OPEN);
|
||||
_rxd.setMaxLen(BLEGATT_ATT_MTU_MAX);
|
||||
_rxd.setMaxLen( Bluefruit.getMaxMtu() );
|
||||
_rxd.setUserDescriptor("RXD");
|
||||
VERIFY_STATUS(_rxd.begin());
|
||||
|
||||
|
||||
Reference in new issue
Block a user