From ac51476d595d9eed5d71859977fcdef1e63008c8 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 28 Jul 2023 11:34:34 +0800 Subject: [PATCH] Add save to flash paramtree item --- pytec/tec_qt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 2b344af..7de4960 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -55,7 +55,8 @@ THERMOSTAT_PARAMETERS = [[ {'name': 'Temperature Swing', 'type': 'float', 'value': 1.5, 'step': 0.1, 'siPrefix': True, 'suffix': '°C'}, {'name': 'Run', 'type': 'action', 'tip': 'Run'}, ]}, - ]} + ]}, + {'name': 'Save to flash', 'type': 'action', 'tip': 'Save config to flash', 'commands': [f'save {ch}']} ] for ch in range(2)]