commit 2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc
parent 9992e8510a279db915884b616be5339675dcdc75
Author: Dominik Hofer <dominik.hofer@bfh.ch>
Date: Sun, 29 Dec 2019 18:52:06 +0100
Some little comments
Diffstat:
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git 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);
}
/**