From 98a7bbb18ca8792a6d39db18d214bc88d50b8594 Mon Sep 17 00:00:00 2001 From: giulcioffi Date: Wed, 28 Oct 2020 18:08:48 +0100 Subject: [PATCH] Use unique max peers definition for mbed boards and increase max peers for avr and samd boards --- src/utility/ATT.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utility/ATT.h b/src/utility/ATT.h index ea71d592..d7f54d9d 100644 --- a/src/utility/ATT.h +++ b/src/utility/ATT.h @@ -26,12 +26,12 @@ #define ATT_CID 0x0004 -#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) -#define ATT_MAX_PEERS 7 -#elif DM_CONN_MAX +#if DM_CONN_MAX #define ATT_MAX_PEERS DM_CONN_MAX // Mbed + Cordio -#else +#elif __AVR__ #define ATT_MAX_PEERS 3 +#else +#define ATT_MAX_PEERS 8 #endif class BLERemoteDevice;