[gnome-bluetooth] settings: More PIN testing



commit 02f3636b369a9a20b0825a056be689ac5b6821cc
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Dec 10 00:38:43 2013 +0100

    settings: More PIN testing

 lib/test-pin.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/lib/test-pin.c b/lib/test-pin.c
index 5fea660..7403c06 100644
--- a/lib/test-pin.c
+++ b/lib/test-pin.c
@@ -7,11 +7,20 @@ int main (int argc, char **argv)
        gboolean confirm;
        char *pin;
 
+       g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
+
+#if 0
        pin = get_pincode_for_device (BLUETOOTH_TYPE_KEYBOARD,
                                      "00:13:6C:00:00:00",
                                      "TomTom Remote",
                                      &max_digits,
                                      &confirm);
+#endif
+       pin = get_pincode_for_device (BLUETOOTH_TYPE_MOUSE,
+                                     "0C:77:1A:00:00:00",
+                                     "Some Apple mouse",
+                                     &max_digits,
+                                     &confirm);
 
        g_message ("pin: %s max digits: %d confirm: %d",
                   pin, max_digits, confirm);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]