summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-11-07 20:10:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-11-07 20:10:41 +0100
commitdfc64943719ce80a16f612ae5e3fa71f7b3de8a1 (patch)
treec974894ef2860671cf2fbf2952238960294a459c /bin
parent1dae1524e10b103dccd5c24e9bedf6916f1444b8 (diff)
Rename connect() to get_id()
Diffstat (limited to 'bin')
-rwxr-xr-xbin/korad-logger4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/korad-logger b/bin/korad-logger
index 84d9483..8e7bea8 100755
--- a/bin/korad-logger
+++ b/bin/korad-logger
@@ -179,7 +179,7 @@ class KA320:
# See <https://sigrok.org/wiki/Korad_KAxxxxP_series> for supported commands
- def connect(self):
+ def get_id(self):
# Device ID length is unknown
return self.rw(b"*IDN?", 32, exact=False)
@@ -307,7 +307,7 @@ def measure_data(
else:
print(f"Starting data acquisition. Press Ctrl+C to stop.")
- print("# Device: " + korad.connect(), file=output_handle)
+ print("# Device: " + korad.get_id(), file=output_handle)
print("# Timestamp Voltage Current", file=output_handle)
while not terminate_measurement:
ts = time.time()