fix wifi changedCB bug
authorYoungjae Shin <yj99.shin@samsung.com>
Thu, 7 Nov 2019 08:50:22 +0000 (17:50 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Thu, 19 Mar 2020 04:30:37 +0000 (13:30 +0900)
wifi/WifiActionPower.cpp

index b4731d3f9fb347b3eb548eac04d33e7030910ed5..83a13c1dc06802a454d6277abb997c0b76e82571 100644 (file)
@@ -142,7 +142,7 @@ void WifiActionPower::wifiStateChangedCB(wifi_manager_device_state_e state, void
 
        INFO("state:%d", state);
 
-       if (changedVal != action->oldVal) {
+       if (changedVal == action->oldVal) {
                valueChangedCB cb = action->cb;
                void *cbData = action->cbData;
                //TODO: revise after revising the modes(because of piAction free)