X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fchronovu-la%2Fprotocol.c;h=a4689fa3b2140cd5a2a8e05fa29efe112fb300a1;hb=9cfc695ffe5f04622f61acb98ea4ac91c3f4ffc3;hp=c2f31a2032a9f6467e99988c67d261f9c7b94ac3;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/chronovu-la/protocol.c b/src/hardware/chronovu-la/protocol.c index c2f31a20..a4689fa3 100644 --- a/src/hardware/chronovu-la/protocol.c +++ b/src/hardware/chronovu-la/protocol.c @@ -18,12 +18,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "protocol.h" SR_PRIV const struct cv_profile cv_profiles[] = { { CHRONOVU_LA8, "LA8", "ChronoVu LA8", 8, SR_MHZ(100), 2, 0.8388608 }, { CHRONOVU_LA16, "LA16", "ChronoVu LA16", 16, SR_MHZ(200), 4, 0.042 }, - { 0, NULL, NULL, 0, 0, 0, 0.0 }, + ALL_ZERO }; /* LA8: channels are numbered 0-7. LA16: channels are numbered 0-15. */ @@ -371,7 +372,7 @@ SR_PRIV int cv_read_block(struct dev_context *devc) } while ((devc->done > now) && (bytes_read == 0)); } - /* Check if block read was successful or a timeout occured. */ + /* Check if block read was successful or a timeout occurred. */ if (bytes_read != BS) { sr_err("Trigger timed out. Bytes read: %d.", bytes_read); (void) reset_device(devc); /* Ignore errors. */