bug fix
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 4 Jun 2012 02:34:10 +0000 (11:34 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 4 Jun 2012 02:34:10 +0000 (11:34 +0900)
ChangeLog
regnual/regnual.c

index e9b5b9e..e82d5ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-04  Niibe Yutaka  <gniibe@fsij.org>
+
+       * regnual/regnual.c (regnual_ctrl_write_finish): Bug fix.
+
 2012-06-01  Niibe Yutaka  <gniibe@fsij.org>
 
        Support firmware update with public key authentication.
index b36c498..66603c9 100644 (file)
@@ -156,7 +156,7 @@ static void regnual_ctrl_write_finish (uint8_t req, uint8_t req_no,
   if (type_rcp == (VENDOR_REQUEST | DEVICE_RECIPIENT)
       && USB_SETUP_SET (req) && len == 0)
     {
-      if (req_no == USB_REGNUAL_SEND && index == 0)
+      if (req_no == USB_REGNUAL_SEND && value == 0)
        {
          result = 0;           // calculate crc32 here!!!
        }