Skip to content

Commit

Permalink
Change CapacityMode from 2 (%) to 0 (mAh)
Browse files Browse the repository at this point in the history
This fixes abratchik#11 by also reporting battery capacity percentage on Windows laptops that already has a battery.
  • Loading branch information
forderud committed Aug 29, 2024
1 parent 19469df commit c9611f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/UPS/UPS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const byte bOEMVendor = IOEMVENDOR;
uint16_t iPresentStatus = 0, iPreviousStatus = 0;

byte bRechargable = 1;
byte bCapacityMode = 2; // units are in %%
byte bCapacityMode = 0; // unit: 0=mAh, 1=mWh, 2=%

// Physical parameters
const uint16_t iConfigVoltage = 1380;
Expand Down

0 comments on commit c9611f3

Please sign in to comment.