library: fixed a bug where the flashlight could be unresponsive due to variable overflow
library: fixed weirdness continue_time overflow (float->int)