fix #817 make rssi limit usable with libpax

This commit is contained in:
cyberman54 2021-07-20 13:56:11 +02:00
parent 5b28fe03ed
commit b398c7a981

View File

@ -60,6 +60,7 @@ void set_rssi(uint8_t val[]) {
libpax_config_t current_config;
libpax_get_current_config(&current_config);
current_config.wifi_rssi_threshold = cfg.rssilimit;
current_config.ble_rssi_threshold = cfg.rssilimit;
libpax_update_config(&current_config);
init_libpax();
#endif