more upgrade

This commit is contained in:
NIIBE Yutaka
2012-05-18 19:02:53 +09:00
parent 0c4fb96c1a
commit 48f143aa31
2 changed files with 34 additions and 7 deletions

View File

@@ -228,7 +228,7 @@ gnuk_setup (uint8_t req, uint8_t req_no,
if (addr < &_regnual_start || addr + len > &__heap_end__)
return USB_UNSUPPORT;
if (index == 0)
if (index == 0 && len != 256)
memset (addr, 0, 256);
usb_lld_set_data_to_recv (addr, len);
return USB_SUCCESS;