mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Div by zero fix
This commit is contained in:
@@ -161,7 +161,7 @@ public static class HardwareControl
|
|||||||
}
|
}
|
||||||
ReadFullChargeCapacity();
|
ReadFullChargeCapacity();
|
||||||
|
|
||||||
if (designCapacity is null || fullCapacity is null)
|
if (designCapacity is null || fullCapacity is null || designCapacity == 0 || fullCapacity == 0)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user