Measurement thread takes a while to end
When using a long integration time, e.g. more than 1 second, for a while, and then moving to a faster one (e.g. 0.1 seconds), the program takes a very long time (minutes) to make the change and allow a new measurement