Marlin: [1.1.x-bugfix] bug with sdcard support

Created on 26 May 2018  路  6Comments  路  Source: MarlinFirmware/Marlin

Hello,

Using the tag:

#define SDSUPPORT 

with REPRAP DISCOUNT (non graphical display) got compile error:

In file included from sketch\MarlinConfig.h:26:0,

                 from sketch\Sd2Card.cpp:29:

Sd2Card.h:100:39: error: pasting "/* SPI Master In Slave Out pin*/" and "_DDR" does not give a valid preprocessing token

   #define SPI_MISO_PIN MISO_PIN       // SPI Master In Slave Out pin

config files:
Marlin.zip

Bug? False Alarm Build / Toolchain Question

Most helpful comment

@mtmello2003 : This a bug of the C preprocessor that some Arduino and some PlatformIO environments are using. Just remove the comments (// onwards) and it will compile and work

All 6 comments

@mtmello2003 : This a bug of the C preprocessor that some Arduino and some PlatformIO environments are using. Just remove the comments (// onwards) and it will compile and work

That麓s weird! I did as you recomended and it worked!

Tks

I saw this error with 1.8.6 but it went away after upgrading to 1.8.7.

@mtmello2003 : This a bug of the C preprocessor that some Arduino and some PlatformIO environments are using. Just remove the comments (// onwards) and it will compile and work

Great, completed as stated and compiled with no issues, Thanks.

@mtmello2003 : This a bug of the C preprocessor that some Arduino and some PlatformIO environments are using. Just remove the comments (// onwards) and it will compile and work

where do i find the (// onwards)

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Glod76 picture Glod76  路  3Comments

ahsnuet09 picture ahsnuet09  路  3Comments

Matts-Hub picture Matts-Hub  路  3Comments

modem7 picture modem7  路  3Comments

otisczech picture otisczech  路  3Comments