From: Joel Holdsworth Date: Sat, 3 Mar 2012 17:04:25 +0000 (+0000) Subject: Removed CMD_STOP and renumbered commands X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~55 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3b6919fa4ed05ab312162e27ef8a2bc5ec5b7976;p=sigrok-firmware-fx2lafw.git Removed CMD_STOP and renumbered commands --- diff --git a/fx2lafw.c b/fx2lafw.c index 6af43990..18d31f62 100644 --- a/fx2lafw.c +++ b/fx2lafw.c @@ -114,17 +114,12 @@ BOOL handle_vendorcommand(BYTE cmd) /* Protocol implementation */ switch (cmd) { - case CMD_START: - gpif_acquisition_start(); - return TRUE; - case CMD_STOP: - GPIFABORT = 0xff; - /* TODO */ - return TRUE; - break; case CMD_GET_FW_VERSION: /* TODO */ break; + case CMD_START: + gpif_acquisition_start(); + return TRUE; default: /* Unimplemented command. */ break; diff --git a/include/command.h b/include/command.h index 6824eee3..a75cbde0 100644 --- a/include/command.h +++ b/include/command.h @@ -19,6 +19,5 @@ */ /* Protocol commands */ -#define CMD_START 0xb0 -#define CMD_STOP 0xb1 -#define CMD_GET_FW_VERSION 0xb2 +#define CMD_GET_FW_VERSION 0xb0 +#define CMD_START 0xb1