Skip to content

Missing Pi Model #26

@axwaxw

Description

@axwaxw

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions