aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-09-30 14:26:20 +0300
committerAvi Levkovich <avi@twine-s.com>2020-09-30 14:26:20 +0300
commit58fdc1c4c02d1df6a1d58729308b7be515982844 (patch)
tree2c9ce500533d9c173fd9e36fec3e866af51688c1 /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
parent5ba1c2b05033d2ffddf394dd1ed7067eaff1c5bc (diff)
downloadTango-58fdc1c4c02d1df6a1d58729308b7be515982844.tar.gz
Tango-58fdc1c4c02d1df6a1d58729308b7be515982844.zip
Reading VOC gas sensor only when using new whs
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 765712502..5f1c0ffaf 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -827,7 +827,10 @@ uint32_t MillisecLowLoop(uint32_t tick)
Gas_PPM_Info = Calculate_Gas_Power_Consumption();*/
// ReportWithPackageFilter(ThreadFilter,"waste tank calculate level",__FILE__,__LINE__,(int)(GetWHSWasteTankLevelMiliLiter()*1000),RpWarning,(int) msec_millisecondCounter,0);
//Trigger_WHS_MAX11614_Read_allADC();
- Trigger_WHS_MAX11614_Read_Gas_Sensor();
+ if (WHS_Type == WHS_TYPE_NEW)
+ {
+ Trigger_WHS_MAX11614_Read_Gas_Sensor();
+ }
#ifdef CONTROL_DEBUG
ResetControlTime();
#endif