aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-10-11 12:17:12 +0300
committerAvi Levkovich <avi@twine-s.com>2018-10-11 12:17:12 +0300
commit4cf1319552fa1d694262f7bbc41ab4ea9991d457 (patch)
treeaa09da10f597a3b23fff9df74e2a7eaff178871c /Software/Embedded_SW/Embedded/Modules
parent4aeee3ee3873bf148984b49aa5e0e9a43ce654c3 (diff)
downloadTango-4cf1319552fa1d694262f7bbc41ab4ea9991d457.tar.gz
Tango-4cf1319552fa1d694262f7bbc41ab4ea9991d457.zip
change the input value in DiagnosticLoadSpeedSensor to float
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Diagnostics/Diagnostics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Diagnostics/Diagnostics.c b/Software/Embedded_SW/Embedded/Modules/Diagnostics/Diagnostics.c
index 66c149f33..b4e9b24af 100644
--- a/Software/Embedded_SW/Embedded/Modules/Diagnostics/Diagnostics.c
+++ b/Software/Embedded_SW/Embedded/Modules/Diagnostics/Diagnostics.c
@@ -230,9 +230,9 @@ void DiagnosticLoadTemperature(int HeaterId, int temperature)
if (HeaterCounterIndex[HeaterId]>=DIAGNOSTICS_LIMIT )
HeaterCounterIndex[HeaterId] = 0;
}
-void DiagnosticLoadSpeedSensor(uint32_t value)
+void DiagnosticLoadSpeedSensor(float value)
{
- SpeedValue[SpeedCounterIndex] = value;
+ SpeedValue[SpeedCounterIndex] = (double)(value);
SpeedCounterIndex++;
if (SpeedCounterIndex>=DIAGNOSTICS_DANCER_LIMIT )
SpeedCounterIndex = 0;