File tree 2 files changed +6
-2
lines changed
python/lvmecp/actor/commands
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
### ✨ Improved
6
6
7
7
* Store engineering mode information in Redis so it can be restored when the actor restarts.
8
+ * Change ` engineering-mode enable --timeout ` to use hours and increase the allowed maximum value.
8
9
9
10
10
11
## 1.3.0 - January 30, 2025
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ def engineering_mode():
65
65
@click .option (
66
66
"--timeout" ,
67
67
"-t" ,
68
- type = click .FloatRange (min = 0.1 , max = 86400 ),
69
- help = "Timeout for the engineering mode. "
68
+ type = click .FloatRange (min = 0.1 , max = 300 ),
69
+ help = "Timeout for the engineering mode, in hours . "
70
70
"If not passed, the default timeout is used." ,
71
71
)
72
72
@click .option (
@@ -90,6 +90,9 @@ async def enable(
90
90
actor = command .actor
91
91
modbus = command .actor .plc .modbus
92
92
93
+ if timeout is not None :
94
+ timeout = timeout * 3600
95
+
93
96
await command .actor .eng_mode (True , timeout = timeout )
94
97
await asyncio .sleep (0.5 ) # Allow time for the e-mode task to run.
95
98
You can’t perform that action at this time.
0 commit comments