Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor: unregister on the fly #4683

Closed
rusefillc opened this issue Oct 19, 2022 · 1 comment · Fixed by #4684
Closed

Sensor: unregister on the fly #4683

rusefillc opened this issue Oct 19, 2022 · 1 comment · Fixed by #4684

Comments

@rusefillc
Copy link
Contributor

have CLT assigned to any ADC input
set input to NONE, click 'burn'
go to lua

cltSensor = Sensor.new("clt")

expected behaviour: happy script

actual result:

2022-10-19_19_52_40_965: EngineState: LUA ERROR loading script: [string "-- start of technical boring details please i..."]:50: Tried to create a Lua sensor of type Clt, but one was already registered.

at the moment full power cycle is needed for real analog sensor to un-register

@rusefillc
Copy link
Contributor Author

rusefillc added a commit that referenced this issue Oct 20, 2022
rusefillc added a commit that referenced this issue Oct 20, 2022
rusefillc added a commit that referenced this issue Oct 20, 2022
* Sensor: unregister on the fly #4683

* Sensor: unregister on the fly #4683

* Adc unregister #4684

* Adc unregister #4684
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant