X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=hardware%2Fcenter-3xx%2Fprotocol.c;h=ef8b9dcd600c7f45858e399b6fbfb93aa678fc55;hp=f9e5e8156d67d437da9b040a829123faa40885fb;hb=43cd4637285833706f8a404ca027bcf0ee75b9ae;hpb=4a8bbed76d127663e62d83f6a3ac5b7e315e5f00 diff --git a/hardware/center-3xx/protocol.c b/hardware/center-3xx/protocol.c index f9e5e815..ef8b9dcd 100644 --- a/hardware/center-3xx/protocol.c +++ b/hardware/center-3xx/protocol.c @@ -136,7 +136,7 @@ static int handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi, int idx) return SR_ERR; } - /* Common values for all 4 probes. */ + /* Common values for all 4 channels. */ packet.type = SR_DF_ANALOG; packet.payload = &analog; analog.mq = SR_MQ_TEMPERATURE; @@ -146,8 +146,8 @@ static int handle_packet(const uint8_t *buf, struct sr_dev_inst *sdi, int idx) /* Send the values for T1 - T4. */ for (i = 0; i < 4; i++) { l = NULL; - l = g_slist_append(l, g_slist_nth_data(sdi->probes, i)); - analog.probes = l; + l = g_slist_append(l, g_slist_nth_data(sdi->channels, i)); + analog.channels = l; analog.data = &(info.temp[i]); sr_session_send(devc->cb_data, &packet); g_slist_free(l);