Skip to content

Commit fde1f78

Browse files
tokangasrlubos
authored andcommitted
lib: location: Fix combining of cell and Wi-Fi methods
Fixed combining of cellular and Wi-Fi methods broken by commit 5e39c5f. Signed-off-by: Tommi Kangas <[email protected]>
1 parent 0856720 commit fde1f78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/location/location_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ static void location_request_info_create(const struct location_config *config)
397397
if (abs(method_wifi_index - method_cellular_index) == 1) {
398398
__ASSERT_NO_MSG(loc_req_info.cellular != NULL);
399399
__ASSERT_NO_MSG(loc_req_info.wifi != NULL);
400+
401+
combine_wifi_cell = true;
400402
} else if (loc_req_info.cellular != NULL && loc_req_info.wifi != NULL) {
401403
LOG_DBG("Wi-Fi and cellular methods are not one after the other "
402404
"in method list so they are not combined");

0 commit comments

Comments
 (0)