diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-21 21:21:49 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-21 21:21:49 +0300 |
| commit | b9858454b21aa53f818a5a148e8ad1e75d13a83d (patch) | |
| tree | 2637bf0f3e3e9ea2920e1aaffde0bffc88cf3eb2 /Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | |
| parent | 4c3be889e920102408b0927c5f595ada5a6a544f (diff) | |
| download | Tango-b9858454b21aa53f818a5a148e8ad1e75d13a83d.tar.gz Tango-b9858454b21aa53f818a5a148e8ad1e75d13a83d.zip | |
Some more work on idle and power down request.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 527c063fb..870541394 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -4707,16 +4707,16 @@ namespace Tango.Integration.Operation /// </summary> /// <param name="minutes">Timeout Minutes.</param> /// <returns></returns> - public async Task SetPowerDownTime(int minutes) + public async Task SetPowerSavingMode(int timeToIdleMinutes, int timeToPowerDownMinutes) { try { - LogManager.Log($"Settings machine auto power down time to {minutes} minutes..."); - var r = await SendRequest<SetPowerDownTimeRequest, SetPowerDownTimeResponse>(new SetPowerDownTimeRequest() { TimeoutMinutes = minutes }); + LogManager.Log($"Settings machine power saving mode to {timeToIdleMinutes},{timeToPowerDownMinutes} minutes..."); + var r = await SendRequest<SetPowerDownTimeRequest, SetPowerDownTimeResponse>(new SetPowerDownTimeRequest() { TimeToPowerOffMinutes = timeToPowerDownMinutes }); } catch (Exception ex) { - LogManager.Log(ex, $"Error setting down power down time to {minutes} minutes."); + LogManager.Log(ex, $"Error setting machine power saving mode."); throw ex; } } |
