Fixed timer_wait function thanks to Dascandy :D (he's an awesome guy)

Signed-off-by: Campbell Watson <campbell-watson@outlook.com>