canbus fix and ota adjustments

This commit is contained in:
2026-03-15 20:28:53 +01:00
parent 2d2d7d16cd
commit 02c9486e98
5 changed files with 11 additions and 18 deletions

View File

@@ -198,6 +198,8 @@ export class Controller {
const crc = this.crc32(data);
const size = data.length;
console.log("Uploading new firmware with size " + size + " and crc " + crc + "")
const payload = new Uint8Array(size + 8);
const view = new DataView(payload.buffer);
view.setUint32(0, size, true);