static bool is_valid(void)
{
- int ret;
-
if ((access(CIRCLE_ON_PATH, R_OK) != 0) ||
(access(CIRCLE_OFF_PATH, R_OK) != 0)) {
_E("Do not support wearable haptic device");
return false;
}
- ret = standard_config_parse();
- if (ret < 0)
- _E("failed to load standard vibration configuration file : %d", ret);
+ standard_config_parse();
state = true;
_I("Support wearable haptic device");