Mega 2560 WiFi - error: 'PinStatus' does not name a type

I can confirm that I do. I can upload to both the Arduino, and the ESP module.