aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-10-19 15:42:20 +0300
committerAvi Levkovich <avi@twine-s.com>2020-10-19 15:42:20 +0300
commita66451c7173858d83c06943f05ee713ad6b0892b (patch)
treef72eac09de9a3119e7a2e09ada66f46ed2297567 /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
parent71a69d41eaaeec1fd115bc306724c57c421fc668 (diff)
downloadTango-a66451c7173858d83c06943f05ee713ad6b0892b.tar.gz
Tango-a66451c7173858d83c06943f05ee713ad6b0892b.zip
update the function WHS_Shinko_Communication.
every 10sec read the temperatue +R/W the setup if required
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
index 6b4f4ac59..2428ef465 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -734,6 +734,7 @@ uint32_t MillisecLowLoop(uint32_t tick)
}
else
{
+ //finish reading the setup before start reading the value
WHS_Shinko_Communication(R_Value); // Reading every fourth cycle (Set HW, Request, Set HW, Response)
}
}
@@ -819,6 +820,8 @@ uint32_t MillisecLowLoop(uint32_t tick)
Read_MidTank_Pressure_Sensor(Disp_i);
}
#endif
+
+ Shinko_Read = true;//start cycle of R/W setup or value every 10Sec
}
if (OneMinute_Tick)
{
@@ -849,7 +852,7 @@ uint32_t MillisecLowLoop(uint32_t tick)
{
waste_seq_step1();// include 1Sec delay <- to open !!!!
}*/
- Shinko_Read = true;
+
}
if (OneHourTick)
{