Added define to make usb sending logic clearer.

master
Jessy Diamond Exum 2017-06-20 17:48:08 -07:00
parent c4c4dbe32d
commit bf1b8f6191
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ void USB_WritePacket(const uint8_t *src, uint16_t len, uint32_t ep) {
puts("writing ");
hexdump(src, len);
#endif
uint8_t numpacket = (len+63)/64;
uint8_t numpacket = (len+(MAX_RESP_LEN-1))/MAX_RESP_LEN;
uint32_t count32b = 0, i = 0;
count32b = (len + 3) / 4;