[FIXED] Unable to build for feather m0

A few days ago when recompiling a project from within the atom ide, it updated platforms. Since then I have been getting:

/home/vaelen/Arduino/feather_m0_ble_test/src/feather_m0_ble_test.ino:31:17: error: 'A7' was not declared in this scope
#define VBATPIN A7
^

from platformio run and within the ide.

platformio project GitHub - eiginn/ble_animation_test
full run output out · GitHub

Platform Manager
================
Platform atmelsam
--------
Updating atmelsam @ 1.6.0:      [Up-to-date]
Updating framework-arduinosam @ 1.10611.0:      [Up-to-date]
Updating toolchain-gccarmnoneeabi @ 1.40804.0:  [Up-to-date]

Not sure what would have changed to do this

  1. Please file an issue here Issues · platformio/platformio-core · GitHub

  2. Use a temporary previous version of development platform:

[env:adafruit_feather_m0_usb]
platform = atmelsam@1.5.0
...