]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Removed CMD_STOP and renumbered commands
authorJoel Holdsworth <redacted>
Sat, 3 Mar 2012 17:04:25 +0000 (17:04 +0000)
committerJoel Holdsworth <redacted>
Sat, 3 Mar 2012 17:04:25 +0000 (17:04 +0000)
fx2lafw.c
include/command.h

index 6af439900fb3bd304ea2178c20abd82523cdf4e3..18d31f6265365429016fed7ed9b9f4cf74ed745f 100644 (file)
--- 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;
index 6824eee30223d74a5e8ccb7d87069c3c931b5270..a75cbde0acbf8574b22750a31509cfbafb58ce41 100644 (file)
@@ -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