]> sigrok.org Git - libsigrok.git/blobdiff - bindings/python/sigrok/core/classes.py
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.
[libsigrok.git] / bindings / python / sigrok / core / classes.py
index 2dcd1d95a71812eaebe0c92c50a3f9f5b3de1d92..d5038a0c20762e7ffe5e85f27383df332744f496 100644 (file)
@@ -196,7 +196,7 @@ class Device(object):
             self._probes = {}
             probe_list = self.struct.probes
             while (probe_list):
-                probe_ptr = void_ptr_to_sr_probe_ptr(probe_list.data)
+                probe_ptr = void_ptr_to_sr_channel_ptr(probe_list.data)
                 self._probes[probe_ptr.name] = Probe(self, probe_ptr)
                 probe_list = probe_list.next
         return self._probes
@@ -306,7 +306,7 @@ class ChannelGroup(object):
             self._channels = []
             channel_list = self.struct.channels
             while (channel_list):
-                channel_ptr = void_ptr_to_sr_probe_ptr(channel_list.data)
+                channel_ptr = void_ptr_to_sr_channel_ptr(channel_list.data)
                 self._channels.append(Probe(self, probe_ptr))
                 channel_list = channel_list.next
         return self._channels