platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
82 stars 108 forks source link

Changed the checking for sam or samd in platform.py to be consistant with arduino.py and arduino-common.py #112

Closed prices closed 4 years ago

prices commented 4 years ago

There are three places where it decides between the sam or samd packages. Two of them checked to see if the mcu started with "at91" and if so it was the sam, otherwise it was the samd. The third one (the one in platform.py) checked to see if the mcu started with "samd" and if so it was the samd, otherwise it was the sam. This causes problems with the samc and saml which both are essentially the samd core and use the samd packages.

valeros commented 4 years ago

Thanks!

prices commented 4 years ago

Glad to help!