Skip to content

Commit f840f23

Browse files
committed
qtdragon -add a default 'factor' to avoid error message
An error message is displayed (that is really not the problem) if linuxcnc doesn't quite load in the right sequence. If the 'metric changed' message was not called on startup - factor was never set
1 parent 7933e1d commit f840f23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def __init__(self, halcomp, widgets, paths):
7575
KEYBIND.add_call('Key_Less','on_keycall_angular_jograte',0)
7676

7777
# some global variables
78+
self.factor = 1.0
7879
self._spindle_wait = False
7980
self.probe = None
8081
self.default_setup = os.path.join(PATH.CONFIGPATH, "default_setup.html")

0 commit comments

Comments
 (0)