Seeing how TS thresholds are pretty narrow, and that the top of the divider connects to VIN which in our case is USB "5V", what happens when the rail is not very good?
The USB spec allows quite a range of voltages, so won't that affect TS thresholds or are things ratiometric?