aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-09-17 16:39:26 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-09-17 16:39:26 +0300
commitf3c163e96a9fd733922ce56e37025e2dff0d47e6 (patch)
tree135f877496bacb64d9a432bf7f95acf3d5aedfa6 /Software/Embedded_SW/Embedded/Modules/Thread
parent88079282385e680e46bb9f7e1cfbfa0cf7187a4f (diff)
downloadTango-f3c163e96a9fd733922ce56e37025e2dff0d47e6.tar.gz
Tango-f3c163e96a9fd733922ce56e37025e2dff0d47e6.zip
some bug fixes and changes
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
index 554e4d1ef..d5c186893 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
@@ -1407,6 +1407,8 @@ uint32_t ThreadLoadingReport(void)
if (ThreadLoadingToken[0] == 0)
return OK;
+ if (LoadStages == THREAD_LOAD_INIT)
+ return OK;
if (MessageState == 0)
{
@@ -1485,7 +1487,7 @@ uint32_t ThreadLoadingRestartReport(void) //sending after a failure in the final
response.has_state = true;
response.state = THREAD_LOADING_STATE__ReadyForLoading;
response.errorreason = DefaultErrSrt;
- Report("ThreadLoadingReport",__FILE__,MessageState,response.state,RpWarning,(int)LoadStages,0);
+ Report("ThreadLoadingRestartReport",__FILE__,MessageState,response.state,RpWarning,(int)LoadStages,0);
//-------------------------------------------------------------------------------------------
responseContainer = createContainer(MESSAGE_TYPE__StartThreadLoadingResponse, ThreadLoadingToken, false, &response, &start_thread_loading_response__pack, &start_thread_loading_response__get_packed_size);
responseContainer.has_continuous = true;