[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: cancelbutton working
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: cancelbutton working |
Date: |
Fri, 27 Dec 2019 14:07:26 +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 4bb273a cancelbutton working
4bb273a is described below
commit 4bb273a3790c17d0932ba3983da8d5030444d93b
Author: Boss Marco <address@hidden>
AuthorDate: Fri Dec 27 14:07:20 2019 +0100
cancelbutton working
---
src/main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
index d7ab48b..90a9efb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -937,7 +937,7 @@ shutdown_task (void *cls)
close (qrDisplay.backlightfd);
qrDisplay.backlightfd = -1;
}
- if (0 > cancelButton.cancelbuttonfd)
+ if (0 < cancelButton.cancelbuttonfd)
{
close (cancelButton.cancelbuttonfd);
cancelButton.cancelbuttonfd = open ("/sys/class/gpio/unexport",
@@ -1434,7 +1434,7 @@ launch_payment (struct Product *product)
GNUNET_free (pa);
return NULL;
}
- if (0 > cancelButton.cancelbuttonfd)
+ if (0 < cancelButton.cancelbuttonfd)
start_read_cancel_button ();
return pa;
}
@@ -1653,6 +1653,8 @@ cancel_button_pressed (void *cls)
lseek (cancelButton.cancelbuttonfd, 0, SEEK_SET);
if ( '1' == value )
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Cancel button pressed, canceling current order\n");
if (GNUNET_NO == payment_activity->paid)
{
mdb.cmd = &denyVend;
--
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: cancelbutton working,
gnunet <=