Fix invalid timeout

timeout was set to 1000ms while in the old code it was 1000us. As 1ms
seems too small set it to 10ms.