This commit is contained in:
NIIBE Yutaka
2012-06-04 11:34:10 +09:00
parent 961b808adb
commit 07b1266727
2 changed files with 5 additions and 1 deletions

View File

@@ -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.

View 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!!!
}