Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <dgarcia@dgarcia.net>2019-06-10 01:32:00 +0300
committerDaniel Garcia <dgarcia@dgarcia.net>2019-06-10 01:32:00 +0300
commitca9e40b4e9e640ae3f50d1b89b3f3eca36e2496d (patch)
treed9c45d1a5a9230d8466dad7cc0334abb63795e00
parent1cc984c13ef0751062915cd43cbf470947375290 (diff)
Fix #813 -- further fix for the C_NS macro added by the nrf52 changes
-rw-r--r--chipsets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chipsets.h b/chipsets.h
index 9941ec8e..d452abfe 100644
--- a/chipsets.h
+++ b/chipsets.h
@@ -524,7 +524,7 @@ class PL9823Controller : public ClocklessController<DATA_PIN, 3 * FMUL, 8 * FMUL
// Similar to NS() macro, this calculates the number of cycles for
// the clockless chipset (which may differ from CPU cycles)
-#define C_NS(_NS) (_NS * ((CLOCKLESS_FREQUENCY / 1000000L) + 999) / 1000)
+#define C_NS(_NS) (((_NS * ((CLOCKLESS_FREQUENCY / 1000000L)) + 999)) / 1000)
// GE8822 - 350ns 660ns 350ns
template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB>