X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsiglent-sds%2Fprotocol.c;fp=src%2Fhardware%2Fsiglent-sds%2Fprotocol.c;h=af2f2d9b0b9a1c00f028e7b33013da4fbabf56d7;hb=827139ef49bf0e2eab33beed8da2f1a4ce7c5a3b;hp=3f1749a0c01d6054552e2e9cd9700a972c170af8;hpb=fa3d104f17966dd66664f5ee1cccd05856a7e312;p=libsigrok.git diff --git a/src/hardware/siglent-sds/protocol.c b/src/hardware/siglent-sds/protocol.c index 3f1749a0..af2f2d9b 100644 --- a/src/hardware/siglent-sds/protocol.c +++ b/src/hardware/siglent-sds/protocol.c @@ -467,7 +467,7 @@ SR_PRIV int siglent_sds_receive(int fd, int revents, void *cb_data) struct sr_channel *ch; int len, i; float wait; - gboolean read_complete = false; + gboolean read_complete = FALSE; (void)fd; @@ -556,7 +556,7 @@ SR_PRIV int siglent_sds_receive(int fd, int revents, void *cb_data) } do { - read_complete = false; + read_complete = FALSE; if (devc->num_block_bytes > devc->num_samples) { /* We received all data as one block. */ /* Offset the data block buffer past the IEEE header and description header. */ @@ -612,7 +612,7 @@ SR_PRIV int siglent_sds_receive(int fd, int revents, void *cb_data) sr_dbg("Transfer has been completed."); devc->num_header_bytes = 0; devc->num_block_bytes = 0; - read_complete = true; + read_complete = TRUE; if (!sr_scpi_read_complete(scpi)) { sr_err("Read should have been completed."); packet.type = SR_DF_FRAME_END;