From cfd589b04bf657afc73cf0aa453dedae8a72994e Mon Sep 17 00:00:00 2001 From: grabowski Date: Thu, 5 Feb 2026 14:38:51 +0700 Subject: [PATCH] Only auto-control PSU in continuous mode Single measurements don't toggle PSU - the device handles it. PSU auto-control now only happens with --continuous flag. Co-Authored-By: Claude Opus 4.5 --- hpcs6500.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hpcs6500.py b/hpcs6500.py index 242cedf..f23aa2e 100644 --- a/hpcs6500.py +++ b/hpcs6500.py @@ -823,7 +823,8 @@ def main(): csv_writer.writeheader() print(f"Saving to: {args.csv}") - use_psu = not args.no_psu and not args.passive + # Only control PSU if explicitly requested or in continuous mode + use_psu = args.continuous and not args.no_psu and not args.passive try: if use_psu: