summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Michael Green <plugwash@debian.org>2021-01-28 20:19:20 +0000
committerPeter Michael Green <plugwash@debian.org>2021-01-28 20:19:20 +0000
commit99bf7bacb4e1c17b8a8a0c769c5a240b6a471102 (patch)
treea962716ec2650a4567038c636759bfb046b463df
parentf44ff825f6955d6531b13ed21ac44a3e17aeb192 (diff)
Commit Debian 3.0 (quilt) metadataHEADdebian/1.78-1archive/debian/1.78-1master
[dgit (9.12) quilt-fixup]
-rw-r--r--debian/patches/fix-detection-of-whether-or-not-the-syst.patch19
-rw-r--r--debian/patches/series1
2 files changed, 20 insertions, 0 deletions
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
index 0000000..d8b5391
--- /dev/null
+++ b/debian/patches/fix-detection-of-whether-or-not-the-syst.patch
@@ -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;
diff --git a/debian/patches/series b/debian/patches/series
index e6d349f..f87b5d9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
09-filelayout.patch
remove-broken-comments-from-top-of-manpa.patch
+fix-detection-of-whether-or-not-the-syst.patch