From 99bf7bacb4e1c17b8a8a0c769c5a240b6a471102 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Thu, 28 Jan 2021 20:19:20 +0000 Subject: [PATCH] Commit Debian 3.0 (quilt) metadata [dgit (9.12) quilt-fixup] --- ...detection-of-whether-or-not-the-syst.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 debian/patches/fix-detection-of-whether-or-not-the-syst.patch 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 +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 -- 2.30.2