IF(ENGINEER_MODE STREQUAL on)
ADD_DEFINITIONS("-DENGINEER_MODE")
ENDIF(ENGINEER_MODE STREQUAL on)
+IF(PROFILE STREQUAL mobile)
+ ADD_DEFINITIONS("-DPROFILE_MOBILE")
+ENDIF()
IF(PROFILE STREQUAL tv)
ADD_DEFINITIONS("-DPROFILE_TV")
ENDIF()
len = strlen(battery.power_source_s);
if (!strncmp(battery.power_source_s, POWER_SOURCE_NONE, len)) {
- if (low_battery_type == LOW_BATTERY) {
+ if (low_battery_type == LOW_BATTERY)
*actvie_noti = "BatteryLowActNotiOn";
- *event_noti = "BatteryLowNotiOn";
- } else if (low_battery_type == CRITICAL_BATTERY) {
+ else if (low_battery_type == CRITICAL_BATTERY)
*actvie_noti = "BatteryCriticalActNotiOn";
+#ifdef PROFILE_MOBILE
+ if (low_battery_type == LOW_BATTERY)
+ *event_noti = "BatteryLowNotiOn";
+ else if (low_battery_type == CRITICAL_BATTERY)
*event_noti = "BatteryCriticalNotiOn";
- }
+#else
+ if (low_battery_type == LOW_BATTERY)
+ *event_noti = NULL;
+ else if (low_battery_type == CRITICAL_BATTERY)
+ *event_noti = NULL;
+#endif
ret = 0;
} else if (!strncmp(battery.power_source_s, POWER_SOURCE_AC, len) ||
!strncmp(battery.power_source_s, POWER_SOURCE_WIRELESS, len)) {