Skip to content

Commit dcdd646

Browse files
committed
indentation fixes; correct linux_id return value
1 parent f471243 commit dcdd646

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

adafruit_platformdetect/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def check_dt_compatible_value(self, value):
6262
"""
6363
# Match a value like 'qcom,apq8016-sbc':
6464
if value in open('/proc/device-tree/compatible').read():
65-
return True
65+
return True
6666

6767
return False
6868

adafruit_platformdetect/board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ def _armbian_id(self):
315315
def any_96boards(self):
316316
"""Check if the current board is any 96Boards-family board."""
317317
return (
318-
self.detector.check_dt_compatible_value("qcom,apq8016-sbc")
319-
or self.detector.check_dt_compatible_value("hisilicon,hi3660-hikey960")
320-
or self.detector.check_dt_compatible_value("hisilicon,hi6220-hikey")
318+
self.detector.check_dt_compatible_value("qcom,apq8016-sbc")
319+
or self.detector.check_dt_compatible_value("hisilicon,hi3660-hikey960")
320+
or self.detector.check_dt_compatible_value("hisilicon,hi6220-hikey")
321321
)
322322

323323
@property

adafruit_platformdetect/chip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _linux_id(self):
9191
elif "ODROID-C2" in hardware:
9292
linux_id = S905
9393

94-
return None
94+
return linux_id
9595

9696
def __getattr__(self, attr):
9797
"""

0 commit comments

Comments
 (0)