ChargeThreshold: allow to set only one threshold
getthreshold will return -1 for unsupported thresholds.
setthreshold will tollerate receving no value or -1 to ignore setting a threshold.
I don't have the hardware to test this.
Edited by Méven Car