From: jy910.yun Date: Mon, 10 Jun 2013 05:54:31 +0000 (+0900) Subject: bug fix of system-server code about smack disable kernel and lowbat check routine X-Git-Tag: submit/tizen/20141222.083159~205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=565d702dbaf0969c9c7de0cc87fa67723f5efc04;p=platform%2Fcore%2Fsystem%2Fdeviced.git bug fix of system-server code about smack disable kernel and lowbat check routine Signed-off-by: giyeol.ok --- diff --git a/ss_device_change_handler.c b/ss_device_change_handler.c index acde084..0e8fe62 100755 --- a/ss_device_change_handler.c +++ b/ss_device_change_handler.c @@ -95,13 +95,13 @@ static int check_lowbat_charge_device(int bInserted) int bat_state = -1; int ret = -1; if (bInserted == 1) { - if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) < 0) { + if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) == 0) { if (val == 1) bChargeDeviceInserted = 1; return 0; } } else if (bInserted == 0) { - if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) < 0) { + if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CHARGE_NOW, &val) == 0) { if (val == 0 && bChargeDeviceInserted == 1) { bChargeDeviceInserted = 0; //low bat popup during charging device removing