Zanduino / MCP7940

Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips
GNU General Public License v3.0
37 stars 22 forks source link

SAMD21 board support #7

Closed newerbee closed 6 years ago

newerbee commented 7 years ago

Hi Zanshin,

Nice job with the library. But It looks like the library doesn't compile for SAMD21 based boards such as Arduino M0, or adafruit Feather M0. I am not an expert, but I happen to be using these boards, not sure what is wrong...

BR. Newerbee

SV-Zanshin commented 6 years ago

Let me look into that. I don't have any of those boards, but can try to set my IDE to one of them and see what the problem might be.

SV-Zanshin commented 6 years ago

Sorry that this took so long to look into!

The reason was that the compiler settings were different and I was setting parameter defaults in the functions as well as in the prototype definitions. I've removed those from the function definitions and now the library compiles without a problem on SAMD21 boards.