From f61a8b5e09a9318da1313f4b9c651b3acf79128c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 19 May 2022 23:03:37 -0600 Subject: [PATCH] Add another Mettler Toledo ID (found on a PS3L) (#26) --- 50-usb-scale.rules | 1 + scales.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/50-usb-scale.rules b/50-usb-scale.rules index 58fc32c..5bd855b 100644 --- a/50-usb-scale.rules +++ b/50-usb-scale.rules @@ -4,6 +4,7 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="7b7c", ATTR{idProduct}=="0100", MODE="0776" SUBSYSTEM=="usb", ATTR{idVendor}=="2474", ATTR{idProduct}=="0550", MODE="0776" SUBSYSTEM=="usb", ATTR{idVendor}=="2474", ATTR{idProduct}=="3550", MODE="0776" SUBSYSTEM=="usb", ATTR{idVendor}=="0eb8", ATTR{idProduct}=="f000", MODE="0776" +SUBSYSTEM=="usb", ATTR{idVendor}=="0eb8", ATTR{idProduct}=="f001", MODE="0776" SUBSYSTEM=="usb", ATTR{idVendor}=="6096", ATTR{idProduct}=="0158", MODE="0776" SUBSYSTEM=="usb", ATTR{idVendor}=="0b67", ATTR{idProduct}=="555e", MODE="0776" SUBSYSTEM=="usb", ATTR{idVendor}=="0922", ATTR{idProduct}=="8003", MODE="0776" diff --git a/scales.h b/scales.h index aad301f..6469601 100644 --- a/scales.h +++ b/scales.h @@ -12,7 +12,7 @@ // // **NSCALES** should be kept updated with the length of the list. // -#define NSCALES 12 +#define NSCALES 13 // // What is the number of the weighing result to show, as the first result may be incorrect (from the previous weighing) @@ -34,6 +34,7 @@ uint16_t scales[NSCALES][2] = {\ {0x2474, 0x3550}, // Mettler Toledo {0x0eb8, 0xf000}, + {0x0eb8, 0xf001}, // SANFORD Dymo 10 lb USB Postal Scale {0x6096, 0x0158}, // Fairbanks Scales SCB-R9000