From: Joel Holdsworth Date: Fri, 20 Apr 2012 18:56:11 +0000 (+0100) Subject: Removed a magic number X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~24 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7563058183da25d5d968f5e43d4d098b34871e36;p=sigrok-firmware-fx2lafw.git Removed a magic number --- diff --git a/fx2lafw.c b/fx2lafw.c index ef28431f..018f7604 100644 --- 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); }