wserial: fix for resetting the data->rc