We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a22cd5f + 2d54d00 commit 6c84b3bCopy full SHA for 6c84b3b
Adafruit_BBIO/Encoder.py
@@ -6,7 +6,8 @@
6
import itertools
7
import platform
8
9
-if not platform.release().startswith('4.4'):
+(major, minor, patch) = platform.release().split("-")[0].split(".")
10
+if not (int(major) >= 4 and int(minor) >= 4):
11
raise ImportError(
12
'The Encoder module requires Linux kernel version >= 4.4.x.\n'
13
'Please upgrade your kernel to use this module.\n'
0 commit comments