Skip to content

Commit deb899e

Browse files
committed
Make Voltage a FEATURE-only report to simplify the report.
1 parent 1840080 commit deb899e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/HIDPowerDevice.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ static const uint8_t _hidReportDescriptor[] PROGMEM = {
6363
0x27, 0xFF, 0xFF, 0x00, 0x00, // LOGICAL_MAXIMUM (65535)
6464
0x67, 0x21, 0xD1, 0xF0, 0x00, // UNIT (Centivolts)
6565
0x55, 0x05, // UNIT_EXPONENT (5)
66-
0x81, 0xA3, // INPUT (Constant, Variable, Absolute, No Wrap, Linear, No Preferred, No Null Position, Bitfield)
67-
0x09, 0x30, // USAGE (Voltage)
6866
0xB1, 0xA3, // FEATURE (Constant, Variable, Absolute, No Wrap, Linear, No Preferred, No Null Position, Volatile, Bitfield)
6967
0x09, 0x02, // USAGE (PresentStatus)
7068
0xA1, 0x02, // COLLECTION (Logical)

src/HIDPowerDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//================================================================================
4141

4242
#define HID_PD_PRESENTSTATUS 0x07 // INPUT OR FEATURE(required by Windows)
43-
#define HID_PD_VOLTAGE 0x0B // 11 INPUT (NA) OR FEATURE(implemented)
43+
#define HID_PD_VOLTAGE 0x0B // 11 FEATURE
4444
#define HID_PD_REMAININGCAPACITY 0x0C // 12 INPUT OR FEATURE(required by Windows)
4545
#define HID_PD_FULLCHRGECAPACITY 0x0E // 14 FEATURE ONLY. Last Full Charge Capacity
4646
#define HID_PD_CAPACITYMODE 0x16

0 commit comments

Comments
 (0)