The timeout value that is set during configuration only affects only the Clock Counter Overflow register, which is only relevant for measurement mode 2.
For measurement mode 1, the Coarse Counter Overflow has to be set, e.g. by changing the related registers (0x04, 0x05) from the default maximum values of 0xFF.
It's easy to do this manually with a write16 or two write8 calls, but for added comfort/cleanliness this could be integrated into the configure() function with a check for which measurement mode has been selected.
The timeout value that is set during configuration only affects only the Clock Counter Overflow register, which is only relevant for measurement mode 2.
For measurement mode 1, the Coarse Counter Overflow has to be set, e.g. by changing the related registers (0x04, 0x05) from the default maximum values of 0xFF. It's easy to do this manually with a write16 or two write8 calls, but for added comfort/cleanliness this could be integrated into the configure() function with a check for which measurement mode has been selected.