Commit e6c5ae72 authored by Philippe De Swert's avatar Philippe De Swert

[debouncing] Improve debouncing to avoid missing signals. Fixes: JB#25557

In some border line cases there can be issues with signals not being sent.
This is the case when a charger gets identified as cable and later on correctly
as a dedicated charger.
We make sure we actually compare the set state instead of just relying on
connected state only.
Signed-off-by: default avatarPhilippe De Swert <>
parent 6ad7e1e0
......@@ -105,7 +105,7 @@ void set_usb_connected(gboolean connected)
spurious load/unloads due to faulty signalling
NOKIA: careful with devicelock
if(current_mode.connected == connected)
#ifdef NOKIA
......@@ -194,7 +194,7 @@ void set_charger_connected(gboolean state)
/* check if charger is already connected
to avoid spamming dbus */
if(current_mode.connected == state)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment