Which format is correct?

More
2 years 3 months ago #305390 by gardenweazel
All,
I noticed that there is a variation of variable naming conventions between linuxcnc version 2.8 and the DEVEL version.

The difference I'm seeing is a hyphen and an underscore delimiting variable words.

Here's the related v2.8 docs page and the related DEVEL (2.10) docs page .

The variables that I noticed are as follows:

2.8 Versionqtdragon.modbus-errors
qtdragon.spindle_amps
qtdragon.spindle_fault
qtdragon.spindle_volts

2.10 Versionqtdragon.spindle-modbus-connection
qtdragon.spindle-modbus-errors
qtdragon.spindle-amps
qtdragon.spindle-fault
qtdragon.spindle-volts
Are these typos or a valid change?

Please Log in to join the conversation.

More
2 years 3 months ago #305397 by cmorley
Replied by cmorley on topic Which format is correct?
That was an intentional change.
Hyphen is the usual thing with HAL names.

Please Log in to join the conversation.

More
2 years 3 months ago #305406 by gardenweazel
Thanks Chris!

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum