BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
448e6cc5
Commit
448e6cc5
authored
Mar 25, 2019
by
Zahid Chowdhury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missed destructor when wifi scan rate is to fast & print msg if config apikey is found
parent
6d005738
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
combainLocationApi.cpp
apps/locationService/combain/combainLocationApi.cpp
+1
-0
location.c
apps/locationService/components/location.c
+13
-11
No files found.
apps/locationService/combain/combainLocationApi.cpp
View file @
448e6cc5
...
...
@@ -492,6 +492,7 @@ COMPONENT_INIT
"/ApiKey"
,
combainApiKey
,
sizeof
(
combainApiKey
)
-
1
,
""
);
if
(
cfgRes
==
LE_OK
&&
combainApiKey
[
0
]
!=
'\0'
)
{
LE_INFO
(
"config get of combainApiKey worked"
);
combainApiKeySet
=
true
;
CombainHttpInit
(
&
RequestJson
,
&
ResponseJson
,
ResponseAvailableEvent
);
le_thread_Ref_t
httpThread
=
le_thread_Create
(
"CombainHttp"
,
CombainHttpThreadFunc
,
NULL
);
...
...
apps/locationService/components/location.c
View file @
448e6cc5
...
...
@@ -268,20 +268,22 @@ static bool TrySubmitRequest(void)
const
le_result_t
res
=
ma_combainLocation_SubmitLocationRequest
(
State
.
combainHandle
,
LocationResultHandler
,
NULL
);
if
(
res
==
LE_DUPLICATE
)
{
ma_combainLocation_DestroyLocationRequest
(
State
.
combainHandle
);
return
true
;
}
if
(
res
==
LE_OK
)
{
LE_INFO
(
"Submitted request handle: %d"
,
(
uint32_t
)
State
.
combainHandle
);
return
true
;
}
if
(
res
==
LE_DUPLICATE
)
{
ma_combainLocation_DestroyLocationRequest
(
State
.
combainHandle
);
return
true
;
}
if
(
res
==
LE_OK
)
{
LE_INFO
(
"Submitted request handle: %d"
,
(
uint32_t
)
State
.
combainHandle
);
return
true
;
}
LE_FATAL
(
"Failed to submit location request
\n
"
);
return
false
;
ma_combainLocation_DestroyLocationRequest
(
State
.
combainHandle
);
LE_FATAL
(
"Failed to submit location request
\n
"
);
return
false
;
}
ma_combainLocation_DestroyLocationRequest
(
State
.
combainHandle
);
LE_INFO
(
"Cannot submit WIFI location request to Combain as previous in transit"
);
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment