File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ uint16_t iAvgTimeToEmpty = 7200;
31
31
uint16_t iRemainTimeLimit = 600 ;
32
32
int16_t iDelayBe4Reboot = -1 ;
33
33
int16_t iDelayBe4ShutDown = -1 ;
34
- uint16_t iManufacturerDate = 0 ; // initialized in setup function
35
34
byte iAudibleAlarmCtrl = 2 ; // 1 - Disabled, 2 - Enabled, 3 - Muted
36
35
37
36
@@ -92,9 +91,7 @@ void setup() {
92
91
PowerDevice.setFeature (HID_PD_CPCTYGRANULARITY1, &bCapacityGranularity1, sizeof (bCapacityGranularity1));
93
92
PowerDevice.setFeature (HID_PD_CPCTYGRANULARITY2, &bCapacityGranularity2, sizeof (bCapacityGranularity2));
94
93
95
- uint16_t year = 2024 , month = 10 , day = 12 ;
96
- iManufacturerDate = (year - 1980 )*512 + month*32 + day; // from 4.2.6 Battery Settings in "Universal Serial Bus Usage Tables for HID Power Devices"
97
- PowerDevice.setFeature (HID_PD_MANUFACTUREDATE, &iManufacturerDate, sizeof (iManufacturerDate));
94
+ PowerDevice.sendDate (HID_PD_MANUFACTUREDATE, 2024 , 10 , 12 );
98
95
}
99
96
100
97
void loop () {
You can’t perform that action at this time.
0 commit comments