fix setStates bug that is likely causing radio to get powered down on write