From 23d79916dbd18a4fa2073123333a8987f75c7376 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Sat, 7 Feb 2015 15:55:40 -0500 Subject: Making clockless code compile in conditionally. --- chipsets.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chipsets.h') diff --git a/chipsets.h b/chipsets.h index ed98c835..52a22055 100644 --- a/chipsets.h +++ b/chipsets.h @@ -240,7 +240,7 @@ protected: mSPI.select(); startBoundary(); - for(int i = 0; i < nLeds; i++) { + for(int i = 0; i < nLeds; i++) { writeLed(pixels.loadAndScale0(), pixels.loadAndScale1(), pixels.loadAndScale2()); pixels.stepDithering(); } @@ -444,6 +444,7 @@ protected: // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#ifdef FASTLED_HAS_CLOCKLESS // We want to force all avr's to use the Trinket controller when running at 8Mhz, because even the 328's at 8Mhz // need the more tightly defined timeframes. #if (F_CPU == 8000000 || F_CPU == 16000000 || F_CPU == 24000000) // || F_CPU == 48000000 || F_CPU == 96000000) // 125ns/clock @@ -575,3 +576,5 @@ class LPD1886Controller1250Khz : public ClocklessController