Am 24.09.22 um 16:31 schrieb andy pugh:
On Fri, 23 Sept 2022 at 08:46, Hans Unzner <hansunz...@gmail.com> wrote:

But I have another question: Some time ago I extended MB2HAL and also
changed some of the existing pin names to match the structure.
So one have to change some pin names when switching to 2.9. I already
read some posts about trouble with MB2HAL when starting LinuxCNC from 2.9.
The question is: should I add these old pins for backward compatibility
and mark them as obsolete in the docs?
Maybe increment the INI version and add them to the (mis-named, it
updates HAL too) "update_ini" script?

https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/ini/update_ini.py#L511

Add a new section for version < 1.2, and add your pin renames in the
same format.

On principle a good idea but I think it's misleading if the INI version number is increased when only something inside a component has changed. But maybe I can add a version number to the MB2HAL configuration file and give at least an expressive error message.

Or what if I create different pins depending on the version number? So the behavior for existing configs won't change, but if you would like to use the new functions, you only have to set the version number in the configuration file. I think that's a good idea.
Thanks for pointing me to this.



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to