-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
My pi model was missing. I have added it to the list locally:
static async getJpegSignature() {
const systemInfo = await si.system();
switch (systemInfo.model) {
case 'BCM2711':
case 'BCM2835 - Pi 3 Model B':
case 'BCM2835 - Pi 3 Model B+':
case 'BCM2835 - Pi 4 Model B':
case 'BCM2835 - Pi Zero':
case 'BCM2835 - Pi Zero W':
case 'Raspberry Pi 4 Model B Rev 1.1': // <-------------------------- HERE
return Buffer.from([0xff, 0xd8, 0xff, 0xdb, 0x00, 0x84, 0x00]);
default:
throw new Error(`Could not determine JPEG signature. Unknown system model '${systemInfo.model}'`);
}
}
Metadata
Metadata
Assignees
Labels
No labels