]> sigrok.org Git - libsigrok.git/blobdiff - hardware/atten-pps3xxx/protocol.c
Replace 'probe' with 'channel' in most places.
[libsigrok.git] / hardware / atten-pps3xxx / protocol.c
index d1af4457174c3d186e071ac1598c056a12e0b61a..5658d5d576795bf1cc1c4b5a74d7fca70a4d7588 100644 (file)
@@ -45,7 +45,7 @@ static void handle_packet(const struct sr_dev_inst *sdi)
        dump_packet("received", devc->packet);
        packet.type = SR_DF_ANALOG;
        packet.payload = &analog;
-       analog.probes = sdi->probes;
+       analog.channels = sdi->channels;
        analog.num_samples = 1;
 
        analog.mq = SR_MQ_VOLTAGE;
@@ -122,6 +122,7 @@ SR_PRIV void send_config(const struct sr_dev_inst *sdi)
                value += packet[i];
        packet[i] = value & 0xff;
        send_packet(sdi, packet);
+       devc->config_dirty = FALSE;
 
 }