I have a problem with filter names being reset to default hardcoded values when a new Indi client is connecting.
The problem is only present if the CCD camera "Snoop device" Filter is set to the filter wheel. Setting this to a non existent value fix the problem.
If I remember correctly I first remark this problem in December and it is still present using today ppa.
I have first this issue using an EFW2 with an Atik314 but I can reproduce the problem with the ccd and wheel simulator.
To reproduce:
- start the server with indiserver indi_simulator_ccd indi_simulator_wheel
- connect a graphical client, connect both ccd and filter simulator
- check that CCD snoop filter is Filter Simulator
- Set some nice name for the filter names
- connect to the server with telnet localhost 7624
- from telnet send <getProperties version='1.7'/>
- notice that after the defTextVector with the correct names you finally receive "<setTextVector device="Filter Simulator" name="FILTER_NAME"..." with the hardcoded names
- the graphical client is also updated with the default value as everyone receive this setTextVector
Is this a bug or do I not understand something with the Snoop devices ?
It was not a snooping problem per se, but GetFIlterName(..) was being invoked when getProperties is called and hence it was reloading the hardcoded value. I committed a quick fix. Please git pull and let me know if you still have the problem.