]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/rgb_matrix_animations/solid_reactive_anim.h
Switching rgb_config_t to use HSV struct
[qmk_firmware.git] / quantum / rgb_matrix_animations / solid_reactive_anim.h
index 762a95db313861455d608eb405d2d83d2494cc48..dd49b6530eb6fba8c4c30a773fda11474bce412a 100644 (file)
@@ -3,8 +3,9 @@
 RGB_MATRIX_EFFECT(SOLID_REACTIVE)
 #ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
 
-static void SOLID_REACTIVE_math(HSV* hsv, uint16_t offset) {
-    hsv->h = rgb_matrix_config.hue + qsub8(130, offset);
+static HSV SOLID_REACTIVE_math(HSV hsv,  uint16_t offset) {
+    hsv.h += qsub8(130, offset);
+    return hsv;
 }
 
 bool SOLID_REACTIVE(effect_params_t* params) {