Commit Debian 3.0 (quilt) metadata
authorPeter Michael Green <plugwash@debian.org>
Thu, 28 Jan 2021 20:19:20 +0000 (20:19 +0000)
committerPeter Michael Green <plugwash@debian.org>
Thu, 28 Jan 2021 20:19:20 +0000 (20:19 +0000)
[dgit (9.12) quilt-fixup]

debian/patches/fix-detection-of-whether-or-not-the-syst.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-detection-of-whether-or-not-the-syst.patch b/debian/patches/fix-detection-of-whether-or-not-the-syst.patch
new file mode 100644 (file)
index 0000000..d8b5391
--- /dev/null
@@ -0,0 +1,19 @@
+From: Peter Michael Green <plugwash@debian.org>
+Date: Thu, 28 Jan 2021 20:18:56 +0000
+X-Dgit-Generated: 1.78-1 f44ff825f6955d6531b13ed21ac44a3e17aeb192
+Subject: Fix detection of whether or not the system is a raspberry pi.
+
+
+---
+
+--- pigpio-1.78.orig/pigpio.c
++++ pigpio-1.78/pigpio.c
+@@ -13754,7 +13754,7 @@ unsigned gpioHardwareRevision(void)
+    if ((rev & 0x800000) == 0) /* old rev code */
+    {
+-      if (rev < 0x0016) /* all BCM2835 */
++      if ((rev > 0) && (rev < 0x0016)) /* all BCM2835 */
+       {
+          pi_ispi = 1;
+          piCores = 1;
index e6d349f9b2220de62101347008f9d66f87347edd..f87b5d9ca0dd2bd6f5ca5678d24c5fe8d56a8db5 100644 (file)
@@ -1,2 +1,3 @@
 09-filelayout.patch
 remove-broken-comments-from-top-of-manpa.patch
+fix-detection-of-whether-or-not-the-syst.patch