MY_SOFTSPI in MySensors 2.0 clashes with built-in Arduino SD-Card Library



  • Here is how to reproduce the problem:

    Use:

    • Latest (as of this write-up; SD Built-In by Arduino, Sparkfun 1.08) standard SD Card library from Arduino.
    • Latest MySensors libraries (2.0.0).

    Try to compile the following sketch:
    #include <SPI.h>
    #include <SD.h>
    #define MY_RADIO_NRF24
    #define MY_SOFTSPI
    #include <MySensors.h>

    The following error is reported:
    DigitalPin.h:41:8: error: redefinition of 'struct pin_map_t'

    Maybe something should be conditionally included inside MySensors.h or thereafter within.
    Otherwise, most likely it will clash with other libraries that include the same thing(s).

    Cheers,
    Jordan


Log in to reply
 

Suggested Topics

145
Online

9.4k
Users

10.1k
Topics

104.6k
Posts