config read/writes should be protected with a semaphore? changing adc speed works somehow, might need to change to avoid unseen TI-RTOS clobbers
also changed thresholds to account for drift