AWOL:
but how come my code get a timeout?
when there is still one digit there but not none?Because that's how the time out works - if there's one digit available, it has to wait to see if there's going to be another or a terminator , I.e. a non-digit.
If there's already a non-digit, then the parse routine on was the previous number is complete.
But now for example when I input any non digit at the end
the program still cause a timeout and then switch off.
I still don't solve it.