Anpassung 16bit offset

This commit is contained in:
2026-04-19 00:25:59 +02:00
parent 802ab858e1
commit 24b349de26
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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];
}