]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Removed a magic number
authorJoel Holdsworth <redacted>
Fri, 20 Apr 2012 18:56:11 +0000 (19:56 +0100)
committerJoel Holdsworth <redacted>
Mon, 7 May 2012 10:10:02 +0000 (11:10 +0100)
fx2lafw.c

index ef28431f13c6dff1dab1008fa82a1f32ff5c261e..018f7604dbdf731f54c26a6fcbdbb09b4dde5bbb 100644 (file)
--- a/fx2lafw.c
+++ b/fx2lafw.c
@@ -261,7 +261,7 @@ void fx2lafw_poll(void)
                        if ((EP0CS & bmEPBUSY) != 0)
                                break;
 
-                       if (EP0BCL == 2) {
+                       if (EP0BCL == sizeof(struct cmd_start_acquisition)) {
                                gpif_acquisition_start(
                                 (const struct cmd_start_acquisition *)EP0BUF);
                        }