Skip to content

Commit

Permalink
bugfix for issue robofit#154
Browse files Browse the repository at this point in the history
  • Loading branch information
artable-dev committed Jan 21, 2019
1 parent 05dcdc9 commit c027804
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions art_touch_driver/src/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def process(self):
# MT_SLOT
self.slot = self.get_slot_by_id(event.value)
if self.slot is None:
self.slot = Slot(slot_id=event.value)
self.slot = Slot(slot_id=event.value, track_id=event.value)
self.slots.append(self.slot)

elif event.evtype == 3 and event.code == 57 and event.value >= 0:
Expand All @@ -176,11 +176,13 @@ def process(self):

elif event.evtype == 3 and event.code == 53:
# x position
self.slot.x = event.value
if self.slot:
self.slot.x = event.value

elif event.evtype == 3 and event.code == 54:
# y position
self.slot.y = event.value
if self.slot:
self.slot.y = event.value

elif event.evtype == 0:

Expand Down

0 comments on commit c027804

Please sign in to comment.