dbus: G_MAXUINT means ignore ChargeStartThreshold or ChargeEndThreshold

If the value is G_MAXUINT, it means charge_control_start_threshold or
charge_control_end_threshold will be skipped.
This commit is contained in:
Kate Hsuan 2024-08-23 22:06:07 +08:00
parent d7005f618d
commit 9449cb5831

View file

@ -857,6 +857,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
<doc:description>
<doc:para>
<p>When a start charge threshold is set the battery won't get charged until the charge drops under this threshold.</p>
<p>In general case, ChargeStartThreshold is between 0 and 100. If it is G_MAXUINT, upower will skip to set charge_control_start_threshold.</p>
</doc:para>
</doc:description>
</doc:doc>
@ -867,6 +868,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
<doc:description>
<doc:para>
<p>The end charge threshold stops the battery from getting charged after the set threshold</p>
<p>In general case, ChargeEndThreshold is between 0 and 100. If it is G_MAXUINT, upower will skip to set charge_control_end_threshold.</p>
</doc:para>
</doc:description>
</doc:doc>