Skip to content

Commit

Permalink
ID the PB InkPad 4
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed May 20, 2023
1 parent d814b9d commit ac92b68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions fbink.h
Expand Up @@ -289,6 +289,7 @@ typedef enum
DEVICE_POCKETBOOK_INKPAD_COLOR = 741U,
DEVICE_POCKETBOOK_INKPAD = 840U,
DEVICE_POCKETBOOK_INKPAD_X = 1040U,
DEVICE_POCKETBOOK_INKPAD_4 = 743U | 'G',
DEVICE_POCKETBOOK_COLOR_LUX =
('C' << 8U) | ('o' << 8U) | ('l' << 8U) | ('o' << 8U) | ('r' << 8U) | 'L' | 'u' | 'x',
DEVICE_POCKETBOOK_INKPAD_LITE = 970U,
Expand Down
5 changes: 5 additions & 0 deletions fbink_device_id.c
Expand Up @@ -1566,6 +1566,11 @@ static void
// Flawfinder: ignore
strncpy(deviceQuirks.deviceCodename, "PBColorLux", sizeof(deviceQuirks.deviceCodename) - 1U);
deviceQuirks.deviceId = DEVICE_POCKETBOOK_COLOR_LUX;
} else if (strcmp(model_name, "PB743G") == 0 || strcmp(model_name, "PocketBook 743G") == 0) {
deviceQuirks.screenDPI = 300U;
// Flawfinder: ignore
strncpy(deviceQuirks.deviceCodename, "PBInkPad4", sizeof(deviceQuirks.deviceCodename) - 1U);
deviceQuirks.deviceId = DEVICE_POCKETBOOK_INKPAD_4;
} else if (strcmp(model_name, "PB970") == 0) {
deviceQuirks.screenDPI = 150U;
// Flawfinder: ignore
Expand Down

0 comments on commit ac92b68

Please sign in to comment.