From 42d3586ec82898e155177cc86de6c2481816aec3 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:27:06 -0500 Subject: [PATCH] [BT] Enable to define MinimumRSSI from a macro in ini files --- main/config_BT.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/config_BT.h b/main/config_BT.h index 11c2f16eec..bfc8acc526 100644 --- a/main/config_BT.h +++ b/main/config_BT.h @@ -64,7 +64,9 @@ extern String stateBTMeasures(bool); # define BLE_FILTER_CONNECTABLE 0 // Sets whether to filter publishing of scanned devices that require a connection. #endif // Setting this to 1 prevents overwriting the publication of the device connection data with the advertised data (Recommended for use with OpenHAB). -#define MinimumRSSI -100 //default minimum rssi value, all the devices below -100 will not be reported +#ifndef MinimumRSSI +# define MinimumRSSI -100 //default minimum rssi value, all the devices below -100 will not be reported +#endif #ifndef Scan_duration # define Scan_duration 10000 //define the duration for a scan; in milliseconds