Browse Source

Fix set_led_color for BLINKM

Follow-up to #5330
Scott Lahteine 8 years ago
parent
commit
27dd5acc22
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      Marlin/Marlin_main.cpp

+ 1
- 5
Marlin/Marlin_main.cpp View File

@@ -5965,11 +5965,7 @@ inline void gcode_M121() { endstops.enable_globally(false); }
5965 5965
     #if ENABLED(BLINKM)
5966 5966
 
5967 5967
       // This variant uses i2c to send the RGB components to the device.
5968
-      SendColors(
5969
-        code_seen('R') ? code_value_byte() : 0,
5970
-        code_seen('U') ? code_value_byte() : 0,
5971
-        code_seen('B') ? code_value_byte() : 0
5972
-      );
5968
+      SendColors(r, g, b);
5973 5969
 
5974 5970
     #else
5975 5971
 

Loading…
Cancel
Save