Anpassung 16bit offset
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user