Skip to content
Snippets Groups Projects
Commit bff1bdda authored by dx's avatar dx Committed by q3k
Browse files

format

parent 5f869a93
No related branches found
Tags v1.0.0+rc1
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment