Removed while loop in the WiFi init code. It was preventing the robot from going into local mode.