Skip to content

Prevent creation of LightSensor outside of the module

lilpep requested to merge lilpep/rust-card10:lilpep-fix-light-sensor into master

This is a minor fix that prevents calling epic_light_sensor_stop without prior calling of epic_light_sensor_run.

This is possible now by merely having something like:

let _ = LightSensor;

Merge request reports

Loading