Anpassung 16bit offset
This commit is contained in:
parent
802ab858e1
commit
24b349de26
3 changed files with 5 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ void CMainController::poll_vendor()
|
|||
uint8_t p[SERIAL_PKT_SIZE] = {};
|
||||
p[0] = USB_EVT_CONFIG_DATA;
|
||||
p[1] = i;
|
||||
uint8_t offset = i * payload;
|
||||
uint16_t offset = (uint16_t)i * payload;
|
||||
for (uint8_t b = 0; b < payload; b++) {
|
||||
if (offset + b < sz) p[2 + b] = raw[offset + b];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue