[riot-notifications] [RIOT-OS/RIOT] FIDO2 support in RIOT (#16489)

Nils Ollrogge notifications at github.com
Wed Jul 21 18:57:05 CEST 2021


@Ollrogge commented on this pull request.



> +#include "debug.h"
+
+static bool g_user_present = false;
+
+#if !IS_ACTIVE(CONFIG_FIDO2_CTAP_DISABLE_UP)
+static void gpio_cb(void *arg);
+
+int fido2_ctap_utils_user_presence_test(void)
+{
+#ifdef BTN0_PIN
+    int ret;
+#ifdef MODULE_FIDO2_CTAP_HID
+    fido2_ctap_transport_hid_send_keepalive(CTAP_HID_STATUS_UPNEEDED);
+#endif
+
+    if (gpio_init_int(BTN0_PIN, BTN0_MODE, GPIO_FALLING, gpio_cb, NULL) < 0) {

The keepalive packet is actually not needed. This is a misunderstanding on my side. Thanks !

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16489#discussion_r674168497
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210721/a55dc160/attachment.htm>


More information about the notifications mailing list