From bff1bdda4baad71995c49b58a1d0d5d1000d71f2 Mon Sep 17 00:00:00 2001
From: dequis <dx@dxzone.com.ar>
Date: Sun, 13 Aug 2023 14:00:10 +0200
Subject: [PATCH] format

---
 components/st3m/st3m_leds.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/components/st3m/st3m_leds.c b/components/st3m/st3m_leds.c
index b55ed3bf01..a9b314549f 100644
--- a/components/st3m/st3m_leds.c
+++ b/components/st3m/st3m_leds.c
@@ -107,15 +107,14 @@ void st3m_leds_update_hardware() {
 
 void st3m_leds_set_single_rgb(uint8_t index, float red, float green,
                               float blue) {
-
     if (red > 1.0) red /= 255.0;
     if (green > 1.0) green /= 255.0;
     if (blue > 1.0) blue /= 255.0;
 
     LOCK_INCOMING;
-    state.target_buffer[index].r = (uint8_t) (red * 255);
-    state.target_buffer[index].g = (uint8_t) (green * 255);
-    state.target_buffer[index].b = (uint8_t) (blue * 255);
+    state.target_buffer[index].r = (uint8_t)(red * 255);
+    state.target_buffer[index].g = (uint8_t)(green * 255);
+    state.target_buffer[index].b = (uint8_t)(blue * 255);
     UNLOCK_INCOMING;
 }
 
-- 
GitLab