diff options
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; } } |
