aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2021-01-11 15:01:04 +0200
committerAvi Levkovich <avi@twine-s.com>2021-01-11 15:01:04 +0200
commit3c9d531523b255df4351d1ddafd8acffcb89237e (patch)
treefccbccaaa0ee4a82f545d7a9d339630dbb064087 /Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
parent1e3551c5fddf4b4fd7b52b762a88033149400012 (diff)
parent9e4e1d03cd01f5ad90c9da2340cfd735c1755b5e (diff)
downloadTango-3c9d531523b255df4351d1ddafd8acffcb89237e.tar.gz
Tango-3c9d531523b255df4351d1ddafd8acffcb89237e.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
index 2b1e52134..fe664c16f 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/ThreadLoad.c
@@ -345,6 +345,8 @@
{
LoadStages++;
LoadStatus = OK;
+ SecondTry = false;
+ TryAgain = false;
if (LoadStages == THREAD_LOAD_CLOSE_DANCERS)
{
MotorSetKvalHold(HARDWARE_MOTOR_TYPE__MOTO_RDANCER, keepkvalhold);
@@ -607,6 +609,8 @@
LoadStages++;
ThreadLoadStateMachine(LoadStages);
LoadStatus = OK;
+ SecondTry = false;
+ TryAgain = false;
}
else
{
@@ -654,7 +658,8 @@
if (CallbackCounter == 0)
{
LoadStatus = OK;
-
+ SecondTry = false;
+ TryAgain = false;
LoadStages++;
if (LoadStages != THREAD_LOAD_INITIAL_TENSION) //on this satge we should wait for user call
{
@@ -1614,7 +1619,8 @@ uint32_t ContinueThreadLoadingFunc(MessageContainer* requestContainer)
size_t container_size = message_container__pack(&responseContainer, container_buffer);
my_free(responseContainer.data.data);
SendChars((char*)container_buffer, container_size);
- if (LoadStages == THREAD_LOAD_INITIAL_TENSION) //on this satge we should wait for user call
+ //if (LoadStages == THREAD_LOAD_INITIAL_TENSION) //on this stage we should wait for user call
+ //commented out - error retry is only with this message
{
ThreadLoadStateMachine(LoadStages);
}