Skip to content

Commit

Permalink
Merge pull request #105 from ikmckenz/fix-bluepy-import
Browse files Browse the repository at this point in the history
Clean up BluePy import
  • Loading branch information
AJ Keller authored Dec 3, 2018
2 parents ec97b32 + f4093b0 commit 069bbcb
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions openbci/ganglion.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,7 @@ def handle_sample(sample):
import sys
import pdb
import glob
# local bluepy should take precedence
import sys
sys.path.insert(0,"bluepy/bluepy")

STUB_BTLE = False

try:
from btle import Scanner, DefaultDelegate, Peripheral
except:
DefaultDelegate = object
STUB_BTLE = True
else:
from bluepy.btle import Scanner, DefaultDelegate, Peripheral
from bluepy.btle import Scanner, DefaultDelegate, Peripheral


SAMPLE_RATE = 200.0 # Hz
Expand Down

0 comments on commit 069bbcb

Please sign in to comment.