diff options
author | Daniel Garcia <dgarcia@dgarcia.net> | 2019-06-10 01:32:00 +0300 |
---|---|---|
committer | Daniel Garcia <dgarcia@dgarcia.net> | 2019-06-10 01:32:00 +0300 |
commit | ca9e40b4e9e640ae3f50d1b89b3f3eca36e2496d (patch) | |
tree | d9c45d1a5a9230d8466dad7cc0334abb63795e00 | |
parent | 1cc984c13ef0751062915cd43cbf470947375290 (diff) |
Fix #813 -- further fix for the C_NS macro added by the nrf52 changes
-rw-r--r-- | chipsets.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |