Hardcore-fs/TinyWebServer — comment on commit 35a3222b884ffde5c25818caa721f7d1da46f349
File: examples/BlinkLed/BlinkLed.ino line 171
By ovidiucp:

Can we have a separate `speed` variable that's initialized to SPI_HALF_SPEED for Mega and SPI_FULL_SPEED for everything else? I haven't noticed this problem on Uno or Duemilanove.

Something like this:

int speed;

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
speed = SPI_HALF_SPEED;
#else
speed = SPI_FULL_SPEED;
#endif