fix search/replace bug but this isn't working for some reason
authorDarron Broad <darron@kewl.org>
Wed, 28 Dec 2016 06:42:02 +0000
changeset 30 137d69ef3280
parent 29 d7f1651b6ee9
child 31 52a43d0efa19
fix search/replace bug but this isn't working for some reason
and too old and tired to work it out. boo hoo
module/src/gpio-bb.c
--- a/module/src/gpio-bb.c	Wed Dec 28 06:13:22 2016 +0000
+++ b/module/src/gpio-bb.c	Wed Dec 28 06:42:02 2016 +0000
@@ -162,7 +162,8 @@
 		goto error;
 
 	mask = gpio_bb_first(nbits);
-	*bits |= mask;
+	if (bit)
+		*bits |= mask;
 	gpio_bb_clock();
 
 	while (--nbits) {
@@ -196,7 +197,8 @@
 		goto error;
 
 	mask = gpio_bb_first(nbits);
-	*bits |= mask;
+	if (bit)
+		*bits |= mask;
 
 	while (--nbits) {
 		gpio_bb_clock();