raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=22f00acfc8d398313ba9e34f4063389efd17e1ad

commit 22f00acfc8d398313ba9e34f4063389efd17e1ad
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Dec 19 12:12:56 2018 +0000

    bluez5 - add debug to find power on issue
    
    the power on logic doesnt seem to always work and i don't know why. so
    add debug to find out...
---
 src/modules/bluez5/e_mod_popup.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/modules/bluez5/e_mod_popup.c b/src/modules/bluez5/e_mod_popup.c
index 2eb0b1cab..2b6617e03 100644
--- a/src/modules/bluez5/e_mod_popup.c
+++ b/src/modules/bluez5/e_mod_popup.c
@@ -870,8 +870,16 @@ _cb_adapter_add_delayed_setup(void *data)
              if (!ad->addr) continue;
              if (!strcmp(ad->addr, o->address))
                {
-                  if (ad->powered) bz_obj_power_on(o);
-                  else bz_obj_power_off(o);
+                  if (ad->powered)
+                    {
+                       printf("==== BZ INIT REQ POWER ON %s\n", o->address);
+                       bz_obj_power_on(o);
+                    }
+                  else
+                    {
+                       printf("==== BZ INIT REQ POWER OFF %s\n", o->address);
+                       bz_obj_power_off(o);
+                    }
                   if (ad->pairable) bz_obj_pairable(o);
                   else bz_obj_unpairable(o);
                }

-- 


Reply via email to