aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik Hofer <dominik.hofer@bfh.ch>2019-12-29 18:52:06 +0100
committerDominik Hofer <dominik.hofer@bfh.ch>2019-12-29 18:52:06 +0100
commit2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc (patch)
treea555c83971487cea99220ca5e87a50dc0c5a5eda /src
parent9992e8510a279db915884b616be5339675dcdc75 (diff)
downloadtaler-mdb-2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc.tar.gz
taler-mdb-2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc.tar.bz2
taler-mdb-2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc.zip
Some little comments
Diffstat (limited to 'src')
-rw-r--r--src/main.c17
1 files 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);
}
/**