From 16aa0e4dbac0b198609343bbb262a3e167ad9bff Mon Sep 17 00:00:00 2001 From: ewowi Date: Mon, 11 Jul 2022 11:39:56 +0200 Subject: [PATCH] Resolve compile fail --- wled00/FX_fcn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 97e4c7f7..560df21b 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -87,7 +87,7 @@ uint16_t ColorTransition::progress() { //transition progression between 0-65535 uint32_t timeNow = millis(); if (timeNow - transitionStart > transitionDur) return 0xFFFFU; uint32_t elapsed = timeNow - transitionStart; - return min(0xFFFFU, elapsed * 0xFFFFU / transitionDur); + return min(0xFFFFU, (unsigned int)(elapsed * 0xFFFFU / transitionDur)); } uint8_t ColorTransition::currentBri(uint8_t briNew, bool useCct) {