File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ int iIntTimer=0;
10
10
11
11
12
12
// String constants
13
- const char STRING_DEVICECHEMISTRY[] PROGMEM = " PbAc " ;
13
+ const char STRING_DEVICECHEMISTRY[] PROGMEM = " LiP " ;
14
14
const char STRING_SERIAL[] PROGMEM = " UPS10" ;
15
15
16
16
const byte bDeviceChemistry = IDEVICECHEMISTRY;
@@ -20,14 +20,14 @@ PresentStatus iPresentStatus = {}, iPreviousStatus = {};
20
20
byte bCapacityMode = 1 ; // unit: 0=mAh, 1=mWh, 2=%
21
21
22
22
// Physical parameters
23
- const uint16_t iConfigVoltage = 1380 ; // centiVolt
24
- uint16_t iVoltage =1300 ; // centiVolt
23
+ const uint16_t iConfigVoltage = 1509 ; // centiVolt
24
+ uint16_t iVoltage =1499 ; // centiVolt
25
25
uint16_t iRunTimeToEmpty = 0 , iPrevRunTimeToEmpty = 0 ;
26
26
uint16_t iManufacturerDate = 0 ; // initialized in setup function
27
27
28
28
// Parameters for ACPI compliancy
29
- const uint32_t iDesignCapacity = 100 *360 /iVoltage; // AmpSec=mWh*360/centiVolt (1 mAh = 3.6 As)
30
- uint32_t iFullChargeCapacity = 100 *360 /iVoltage; // AmpSec=mWh*360/centiVolt (1 mAh = 3.6 As)
29
+ const uint32_t iDesignCapacity = 58003 *360 /iVoltage; // AmpSec=mWh*360/centiVolt (1 mAh = 3.6 As)
30
+ uint32_t iFullChargeCapacity = 40690 *360 /iVoltage; // AmpSec=mWh*360/centiVolt (1 mAh = 3.6 As)
31
31
32
32
uint32_t iRemaining =0 , iPrevRemaining=0 ;
33
33
bool bCharging = false ;
You can’t perform that action at this time.
0 commit comments