From a1659bf47e8d75d18578502634cc7a4aa795550a Mon Sep 17 00:00:00 2001 From: Macpie Date: Wed, 1 Nov 2023 14:08:15 -0700 Subject: [PATCH] Fix device routing disable_preferred_hotspot --- src/device/router_device_routing.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device/router_device_routing.erl b/src/device/router_device_routing.erl index 1d0f376ef..daa0ec400 100644 --- a/src/device/router_device_routing.erl +++ b/src/device/router_device_routing.erl @@ -546,10 +546,10 @@ maybe_buy_join_offer(Device, PayloadSize, Hotspot, PHash) -> {error, _Reason} = Error -> Error; ok -> - case router_utils:get_env_bool(disable_preferred_hotspot, true) of - false -> - {ok, Device}; + case router_utils:get_env_bool(disable_preferred_hotspot, false) of true -> + {ok, Device}; + false -> case check_device_preferred_hotspots(Device, Hotspot) of none_preferred -> maybe_multi_buy_offer(Device, PHash);