Skip to content

Commit 615ad5b

Browse files
committed
Import legacy plasma library if available
1 parent 3b38df7 commit 615ad5b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

library/fanshim/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import RPi.GPIO as GPIO
22
import time
3-
import plasma
3+
try:
4+
from plasma import legacy as plasma
5+
except ImportError:
6+
import plasma
47
import atexit
58
from threading import Thread
69

0 commit comments

Comments
 (0)