Skip to content

Commit

Permalink
Fix for X52 mfd
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Aug 20, 2014
1 parent 387ae06 commit 2cb1485
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ class X52ProMFD(DummyMFD):
"""
Wrapper for the Saitek X52 Pro MFD.
"""
from time import sleep

def __init__(self):
try:
import saitek.X52Pro
Expand All @@ -85,9 +83,9 @@ def __init__(self):
def finish(self):
self.doObj.finish()

def display(self, line, line1="", line2="", delay=None):
def display(self, line1, line2="", line3="", delay=None):
self.page[0], self.page[1], self.page[2] = line1, line2, line3
if delay: sleep(delay)
if delay: import time; time.sleep(delay)

######################################################################
# Functions
Expand Down

0 comments on commit 2cb1485

Please sign in to comment.