Emandhal / MCP251XFD

MCP2517FD, MCP2518FD and MCP251863 driver
MIT License
30 stars 6 forks source link

Code does not compile - du to strange missing definitions and unmatched #ifdefs #10

Open jarekkt opened 10 months ago

jarekkt commented 10 months ago

Hi,

I have tried to compile your code, but it fails - see two obvious things:

MCP251XFD/MCP251XFD.c:166:8: error: 'MCP251XFD' has no member named 'GPIOsOutLevel' 166 | pComp->GPIOsOutLevel = pConf->GPIOsOutLevel; // [C++] Transfer GPIOs output level at startup configuration, because the of the class

MCP251XFD.c:2221: error: unterminated #ifdef 2221 | #ifdef USE_ADVANCED_INTERFACE

jarekkt commented 10 months ago

This seems to happened in the merge 2 months ago....

Emandhal commented 10 months ago

Hi, you're right, it's a faulty merge

I'm sorry for that, for the moment I'm working on this driver on a new revision.

The last commit should make it work again. If not let me know and stay at the last non-broken commit.