From 09eae0ea918dbc239b4304c74aa3a104fe2c1f4a Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Sun, 29 Aug 2021 01:10:47 +0100 Subject: [PATCH] Fix FADE(pin,0,0) operation in RMFT --- IO_PCA9685.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO_PCA9685.cpp b/IO_PCA9685.cpp index 79c022c..aaa56ea 100644 --- a/IO_PCA9685.cpp +++ b/IO_PCA9685.cpp @@ -165,7 +165,7 @@ void PCA9685::_writeAnalogue(VPIN vpin, int value, uint8_t profile, uint16_t dur profileValue==Medium ? 20 : // 1.0 seconds profileValue==Slow ? 40 : // 2.0 seconds profileValue==Bounce ? sizeof(_bounceProfile)-1 : // ~ 1.5 seconds - duration * 2; // Convert from deciseconds (100ms) to refresh cycles (50ms) + duration * 2 + 1; // Convert from deciseconds (100ms) to refresh cycles (50ms) s->stepNumber = 0; s->toPosition = value; s->fromPosition = s->currentPosition;