]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/chronovu-la/protocol.c
Enable loading of session files without the unit size defined
[libsigrok.git] / src / hardware / chronovu-la / protocol.c
index c2f31a2032a9f6467e99988c67d261f9c7b94ac3..a4689fa3b2140cd5a2a8e05fa29efe112fb300a1 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <config.h>
 #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. */