diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-11-07 20:10:41 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-11-07 20:10:41 +0100 |
commit | dfc64943719ce80a16f612ae5e3fa71f7b3de8a1 (patch) | |
tree | c974894ef2860671cf2fbf2952238960294a459c | |
parent | 1dae1524e10b103dccd5c24e9bedf6916f1444b8 (diff) |
Rename connect() to get_id()
-rwxr-xr-x | bin/korad-logger | 4 |
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() |