elixir-vision / picam

Elixir library used to capture MJPEG video on a Raspberry Pi using the camera module.
Other
122 stars 27 forks source link

Check camera implementation at runtime #51

Closed fhunleth closed 4 years ago

fhunleth commented 4 years ago

This moves camera implementation selection from compile-time to run-time. This prevents an issue where settings aren't updated since mix doesn't recompile dependencies when the config.exs changes.

Fixes #50.

GregMefford commented 4 years ago

Thanks for taking care of that! It's annoying that this is necessary - I actually thought that Mix did recompile dependencies when the config files were changed but I know I've also hit the occasional situation like this where it didn't for reasons that were unclear to me.

fhunleth commented 4 years ago

Yes, completely agree. I haven't spent enough time on this to know of a substantially better way of addressing the issue.