From 710cbefb7171480dbad9466de16044f9c5be38ec Mon Sep 17 00:00:00 2001 From: Eric Jiang Date: Sat, 31 Dec 2011 15:42:08 -0500 Subject: [PATCH] Added USB ID for USPS PS311 Thanks to Mike DePriest (mike.depriest@gmail.com), added a scale definition for the USPS PS311 (made by Elane). ID is 7b7c:0100. --- 50-usb-scale.rules | 1 + scales.h | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/50-usb-scale.rules b/50-usb-scale.rules index b09df87..8cb3d66 100644 --- a/50-usb-scale.rules +++ b/50-usb-scale.rules @@ -1 +1,2 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="1446", ATTR{idProduct}=="6a73", MODE="0776" +SUBSYSTEM=="usb", ATTR{idVendor}=="7b7c", ATTR{idProduct}=="0100", MODE="0776" diff --git a/scales.h b/scales.h index 6306608..9336c1c 100644 --- a/scales.h +++ b/scales.h @@ -12,13 +12,15 @@ // // **scalesc** should be kept updated with the length of the list. // -int scalesc = 1; +int scalesc = 2; // // Scales // ------ // -uint16_t scales[1][2] = {\ +uint16_t scales[2][2] = {\ // Stamps.com 10-lb USB scale - {0x1446, 0x6a73} + {0x1446, 0x6a73}, + // USPS (Elane) PS311 "XM Elane Elane UParcel 30lb" + {0x7b7c, 0x0100} };