ab3100: fix off-by-one value range checking for voltage selector