summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDev4Perf <dev4perf@gmail.com>2019-01-03 21:44:11 -0500
committerjrior001 <jriordan001@gmail.com>2019-01-06 09:14:49 -0500
commita2aa44e91fb98f4bc5825e7b87931caadc853e02 (patch)
tree99ead49652416bf987cdfbaa1dd60f9b2495f8c5
parent593853cc98bac297ab7ddaff707587c963215e86 (diff)
downloadhardware_lineage_interfaces-lineage-15.1.tar.gz
hardware_lineage_interfaces-lineage-15.1.tar.bz2
hardware_lineage_interfaces-lineage-15.1.zip
aw2013: lets not crash service on missing LEDlineage-15.1
* Currently the service crashes if an LED is not detects and device fails to boot without the service running * NO LED > no boot Change-Id: I5316e72a038101b8076ffbb2a0d0d3054629ef3f
-rw-r--r--light/2.0-aw2013/service.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/light/2.0-aw2013/service.cpp b/light/2.0-aw2013/service.cpp
index 2abcaa0..ff96560 100644
--- a/light/2.0-aw2013/service.cpp
+++ b/light/2.0-aw2013/service.cpp
@@ -72,63 +72,54 @@ int main() {
if (!redLed) {
LOG(ERROR) << "Failed to open " << kRedLedPath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream greenLed(kGreenLedPath);
if (!greenLed) {
LOG(ERROR) << "Failed to open " << kGreenLedPath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream blueLed(kBlueLedPath);
if (!blueLed) {
LOG(ERROR) << "Failed to open " << kBlueLedPath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream redBlink(kRedBlinkPath);
if (!redBlink) {
LOG(ERROR) << "Failed to open " << kRedBlinkPath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream greenBlink(kGreenBlinkPath);
if (!greenBlink) {
LOG(ERROR) << "Failed to open " << kGreenBlinkPath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream blueBlink(kBlueBlinkPath);
if (!blueBlink) {
LOG(ERROR) << "Failed to open " << kBlueBlinkPath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream redLedTime(kRedLedTimePath);
if (!redLedTime) {
LOG(ERROR) << "Failed to open " << kRedLedTimePath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream greenLedTime(kGreenLedTimePath);
if (!greenLedTime) {
LOG(ERROR) << "Failed to open " << kGreenLedTimePath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
std::ofstream blueLedTime(kBlueLedTimePath);
if (!blueBlink) {
LOG(ERROR) << "Failed to open " << kBlueLedTimePath << ", error=" << errno
<< " (" << strerror(errno) << ")";
- return -errno;
}
android::sp<ILight> service = new Light(