bool isPowerOnDesired()
{
char status[2] = {0};
int readRet = amlSysfs::readSysfs("/sys/class/aml_bl/power", status, 2);
if (readRet > 0) {
std::string backlight_status(status);
return (backlight_status == "1") ? true : false;
} else {
logger.logConsole("poweron.desired", "read backlight_status failed!\n");
return false;
}
}
waht this code mean? You should write your response with 800 or more words.
user