canbus fix and ota adjustments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user