[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: unexport gpio
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: unexport gpio |
Date: |
Fri, 27 Dec 2019 12:56:41 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository taler-mdb.
The following commit(s) were added to refs/heads/master by this push:
new 350e0f7 unexport gpio
350e0f7 is described below
commit 350e0f783db89e3def61ea6a4323def561f62cf7
Author: Boss Marco <address@hidden>
AuthorDate: Fri Dec 27 12:56:35 2019 +0100
unexport gpio
---
src/main.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/main.c b/src/main.c
index 9ffabce..d7ab48b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -937,6 +937,19 @@ shutdown_task (void *cls)
close (qrDisplay.backlightfd);
qrDisplay.backlightfd = -1;
}
+ if (0 > cancelButton.cancelbuttonfd)
+ {
+ close (cancelButton.cancelbuttonfd);
+ cancelButton.cancelbuttonfd = open ("/sys/class/gpio/unexport",
+ O_WRONLY);
+ if (0 > cancelButton.cancelbuttonfd)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Unable to open /gpio/unexport for cancel button\n");
+ }
+ (void) write (cancelButton.cancelbuttonfd, "17", 2);
+ close (cancelButton.cancelbuttonfd);
+ }
/* free the allocated productes read from config file */
if (NULL != products)
{
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-mdb] branch master updated: unexport gpio,
gnunet <=