projects
/
pigpio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
714136a
)
v7302: Fix range of 'old' rev codes
author
Guy McSwain
<guy.mcswain@gmail.com>
Sat, 18 Jan 2020 20:41:09 +0000
(14:41 -0600)
committer
Guy McSwain
<guy.mcswain@gmail.com>
Sat, 18 Jan 2020 20:41:09 +0000
(14:41 -0600)
pigpio.c
patch
|
blob
|
history
pigpio.h
patch
|
blob
|
history
diff --git
a/pigpio.c
b/pigpio.c
index 15dab59534d1bfb7ee6966f02e10c0df85c3c552..261e540a7506971d967adc678903be36864f6dda 100644
(file)
--- a/
pigpio.c
+++ b/
pigpio.c
@@
-13521,7
+13521,7
@@
unsigned gpioHardwareRevision(void)
if ((rev & 0x800000) == 0) /* old rev code */
{
- if (rev < 16) /* all BCM2835 */
+ if (rev <
0x00
16) /* all BCM2835 */
{
pi_ispi = 1;
piCores = 1;
diff --git
a/pigpio.h
b/pigpio.h
index 039a79fd2d67905ebd962fc3b00612004933ea1d..5817460f3e6bd4f9a204ca02ea45050e7aeae924 100644
(file)
--- a/
pigpio.h
+++ b/
pigpio.h
@@
-30,7
+30,7
@@
For more information, please refer to <http://unlicense.org/>
#include <stdint.h>
#include <pthread.h>
-#define PIGPIO_VERSION 730
1
+#define PIGPIO_VERSION 730
2
/*TEXT