"The weak pull-up is automatically turned off when the port
pin is configured as an output."
So this means all of the wpu are turned off on portb if any pin is a output on portb? I guess I thought because the data sheet said "The weak pull-up is" not "The weak pull-ups are turned off it meant just that one pin.

Thank you very much for clearing that up.