pi_miniweather/raspyrfm.diff

15 lines
299 B
Diff
Raw Permalink Normal View History

2021-03-20 15:53:47 +01:00
diff --git a/raspyrfm/__init__.py b/raspyrfm/__init__.py
index 3587a64..08d895d 100644
--- a/raspyrfm/__init__.py
+++ b/raspyrfm/__init__.py
@@ -12,6 +12,9 @@ def __get_hw_params(mod):
dio0 = 1
elif mod == 4:
dio0 = 18
+ elif mod == 5:
+ dio0 = 2
+ mod = 3 # spidev0.2
else:
return