Skip to content

Commit 9c68446

Browse files
committed
set _binho only if BLINKA_NOVA env variable exists
1 parent bf78cc6 commit 9c68446

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_platformdetect/chip.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ class Chip:
2727
"""Attempt detection of current chip / CPU."""
2828
def __init__(self, detector):
2929
self.detector = detector
30-
self._binho = None
30+
try:
31+
os.environ.get('BLINKA_NOVA'):
32+
self._binho = None
33+
except KeyError: # no relevant environment var
34+
pass
3135

3236
@property
3337
def id(self): # pylint: disable=invalid-name,too-many-branches,too-many-return-statements

0 commit comments

Comments
 (0)