Fix infinite loop.

Bad calculation of poll()'s timeout in LED module lead
to a no-wait infinite loop. This should now be fixed.