aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c4
-rw-r--r--Software/Stubs Collection/stubs/Poweroff_progress.cs23
2 files changed, 25 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c
index 7d42ad8f5..22b30748f 100644
--- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c
+++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c
@@ -75,7 +75,7 @@ uint32_t PowerIdleCallBackFunction(uint32_t IfIndex, uint32_t BusyFlag)
{
Report("PowerIdle Idle activated ",__FILE__,__LINE__,(int)powerIdleSecondsLimit,RpWarning,(int)powerIdleSecondsCounter,0);
powerIdleState = true;
- SetPowerMachineState(sttIDLE);
+ //SetPowerMachineState(sttIDLE);
//move to idle state
PowerIdleSetIdle();
}
@@ -103,7 +103,7 @@ void PowerIdleOutOfIdleState(void)
if (powerIdleState == true)
{
powerIdleState = false;
- SetPowerMachineState(sttON);
+ //SetPowerMachineState(sttON);
if (HandleProcessParameters(&ActiveProcessParameters)!= OK)
{
LOG_ERROR (1, "Turn Heaters active failed");
diff --git a/Software/Stubs Collection/stubs/Poweroff_progress.cs b/Software/Stubs Collection/stubs/Poweroff_progress.cs
new file mode 100644
index 000000000..a10bc4ed4
--- /dev/null
+++ b/Software/Stubs Collection/stubs/Poweroff_progress.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Text;
+using System.Linq;
+using System.Drawing;
+using System.Diagnostics;
+using System.Windows.Forms;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+using Tango.PMR.Stubs;
+using Tango.Stubs;
+
+public void OnExecute(StubManager stubManager)
+{
+
+
+ProgressRequest progressRequest = new ProgressRequest();
+progressRequest.Amount = 10;
+progressRequest.Delay = 10;
+
+ var response = stubManager.Run<ProgressResponse>(progressRequest);
+
+} \ No newline at end of file