diff --git a/psychopy_labhackers/components/millikey.py b/psychopy_labhackers/components/millikey.py index ecd2878..30fc00c 100644 --- a/psychopy_labhackers/components/millikey.py +++ b/psychopy_labhackers/components/millikey.py @@ -53,7 +53,7 @@ def writeDeviceCode(self, buff): code = ( "deviceManager.addDevice(\n" " deviceClass='psychopy_labhackers.millikey.MillikeySerialButtonGroup',\n" - " deviceName=%(deviceName)s,\n" + " deviceName=%(deviceLabel)s,\n" " port=%(millikeySerialPort)s,\n" " channels=%(millikeyNButtons)s\n" ")\n" @@ -95,7 +95,7 @@ def writeDeviceCode(self, buff): code = ( "deviceManager.addDevice(\n" " deviceClass='psychopy_labhackers.millikey.MillikeyHIDButtonGroup',\n" - " deviceName=%(deviceName)s,\n" + " deviceName=%(deviceLabel)s,\n" " buttons=%(millikeyButtonAliases)s\n" ")\n" )