[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: Some little comments
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: Some little comments |
Date: |
Sun, 29 Dec 2019 18:52:13 +0100 |
This is an automated email from the git hooks/post-receive script.
dominik-hofer pushed a commit to branch master
in repository taler-mdb.
The following commit(s) were added to refs/heads/master by this push:
new 2cc7b72 Some little comments
2cc7b72 is described below
commit 2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc
Author: Dominik Hofer <address@hidden>
AuthorDate: Sun Dec 29 18:52:06 2019 +0100
Some little comments
---
src/main.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/main.c b/src/main.c
index 2ce84c5..dd80fb6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1741,6 +1741,11 @@ read_keyboard_command (void *cls)
start_read_keyboard ();
}
+/**
+ * @brief Read the state of the cancel button GPIO pin
+ *
+ * @param cls closure
+ */
static void
cancel_button_pressed (void *cls)
{
@@ -1812,17 +1817,19 @@ start_read_keyboard ()
NULL);
}
+/**
+ * @brief Wait for cancel button during payment activity
+ */
static void
start_read_cancel_button ()
{
struct GNUNET_DISK_FileHandle fh = { cancelButton.cancelbuttonfd };
GNUNET_assert (NULL == cancelbutton_task);
- cancelbutton_task = GNUNET_SCHEDULER_add_read_file (
- GNUNET_TIME_UNIT_FOREVER_REL,
- &fh,
- &cancel_button_pressed,
- NULL);
+ cancelbutton_task = GNUNET_SCHEDULER_add_read_file
(GNUNET_TIME_UNIT_FOREVER_REL,
+ &fh,
+ &cancel_button_pressed,
+ NULL);
}
/**
--
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: Some little comments,
gnunet <=