rs485-extension: More polished code. With wrong timeout handling.