Skip to content

Commit d7c4e9f

Browse files
committed
SIMPLIFY: Remove iManufacturer from HID descriptor.
1 parent 2f48964 commit d7c4e9f

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/HIDPowerDevice.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ static const uint8_t _hidReportDescriptor[] PROGMEM = {
4242
0x09, 0xFE, // USAGE (iProduct)
4343
0x79, IPRODUCT, // STRING INDEX (2)
4444
0xB1, 0x23, // FEATURE (Constant, Variable, Absolute, No Wrap, Linear, No Preferred, No Null Position, Nonvolatile, Bitfield)
45-
0x85, HID_PD_MANUFACTURER, // REPORT_ID (3)
46-
0x09, 0xFD, // USAGE (iManufacturer)
47-
0x79, IMANUFACTURER, // STRING INDEX (1)
48-
0xB1, 0x23, // FEATURE (Constant, Variable, Absolute, No Wrap, Linear, No Preferred, No Null Position, Nonvolatile, Bitfield)
4945
0x05, 0x85, // USAGE_PAGE (Battery System) ====================
5046
0x85, HID_PD_CAPACITYMODE, // REPORT_ID (22)
5147
0x09, 0x2C, // USAGE (CapacityMode)
@@ -108,7 +104,6 @@ HIDPowerDevice_::HIDPowerDevice_(void) {
108104

109105
// set string ID here
110106
HID().SetFeature(HID_PD_IPRODUCT, &bProduct, sizeof(bProduct));
111-
HID().SetFeature(HID_PD_MANUFACTURER, &bManufacturer, sizeof(bManufacturer));
112107
}
113108

114109
void HIDPowerDevice_::setOutput(Serial_& out) {

src/HIDPowerDevice.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
//================================================================================
4141

4242
#define HID_PD_IPRODUCT 0x01 // FEATURE ONLY
43-
#define HID_PD_MANUFACTURER 0x03 // FEATURE ONLY
4443

4544
#define HID_PD_PRESENTSTATUS 0x07 // INPUT OR FEATURE(required by Windows)
4645
#define HID_PD_VOLTAGE 0x0B // 11 INPUT (NA) OR FEATURE(implemented)
@@ -70,7 +69,6 @@ class HIDPowerDevice_ {
7069
private:
7170

7271
const byte bProduct = IPRODUCT;
73-
const byte bManufacturer = IMANUFACTURER;
7472

7573
public:
7674
HIDPowerDevice_(void);

0 commit comments

Comments
 (0)