diff options
author | Dominik Hofer <dominik.hofer@bfh.ch> | 2019-12-29 18:52:06 +0100 |
---|---|---|
committer | Dominik Hofer <dominik.hofer@bfh.ch> | 2019-12-29 18:52:06 +0100 |
commit | 2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc (patch) | |
tree | a555c83971487cea99220ca5e87a50dc0c5a5eda /src | |
parent | 9992e8510a279db915884b616be5339675dcdc75 (diff) | |
download | taler-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.c | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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); } /** |