diff --git a/lib/rgb_matrix/animation.ex b/lib/rgb_matrix/animation.ex index 2d06f3d..5b3a9f0 100644 --- a/lib/rgb_matrix/animation.ex +++ b/lib/rgb_matrix/animation.ex @@ -61,7 +61,7 @@ defmodule RGBMatrix.Animation do """ @spec new(animation_type :: type, leds :: [LED.t()]) :: {render_in, t} def new(animation_type, leds) do - config_module = Module.concat([animation_type, Config]) + config_module = Module.concat([animation_type, "Config"]) animation_config = config_module.new() {render_in, animation_state} = animation_type.new(leds, animation_config) diff --git a/lib/rgb_matrix/animation/solid_reactive.ex b/lib/rgb_matrix/animation/solid_reactive.ex index bba9f0f..f83481a 100644 --- a/lib/rgb_matrix/animation/solid_reactive.ex +++ b/lib/rgb_matrix/animation/solid_reactive.ex @@ -59,11 +59,11 @@ defmodule RGBMatrix.Animation.SolidReactive do colors = Enum.map(leds, &{&1.id, color}) - {colors, :never, %{state | first_render: false, paused: true}} + {:never, colors, %{state | first_render: false, paused: true}} end def render(%{paused: true} = state, _config), - do: {[], :never, state} + do: {:never, [], state} def render(state, config) do %{tick: tick, color: color, leds: leds, hits: hits} = state