From 62c663ef17fa6640bee79e2da4d9675cf06b3f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Fri, 5 Apr 2019 14:20:14 +0200 Subject: [PATCH] [ion/led] Fix blue/green LEDs inversion --- ion/src/device/shared/drivers/led.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ion/src/device/shared/drivers/led.cpp b/ion/src/device/shared/drivers/led.cpp index 3a72a5dde..7644040b7 100644 --- a/ion/src/device/shared/drivers/led.cpp +++ b/ion/src/device/shared/drivers/led.cpp @@ -127,8 +127,8 @@ void setPeriodAndDutyCycles(Mode mode, float dutyCycleRed, float dutyCycleGreen, } TIM3.CCR(Ion::Device::LED::Config::RedChannel)->set(dutyCycleRed*period); - TIM3.CCR(Ion::Device::LED::Config::GreenChannel)->set(dutyCycleBlue*period); - TIM3.CCR(Ion::Device::LED::Config::BlueChannel)->set(dutyCycleGreen*period); + TIM3.CCR(Ion::Device::LED::Config::GreenChannel)->set(dutyCycleGreen*period); + TIM3.CCR(Ion::Device::LED::Config::BlueChannel)->set(dutyCycleBlue*period); } }