Fixed serial read on pi