Refactor logging in CustomRobot and main event loop implementation. Removed service logging from CustomRobot::start for cleaner output. Added a continuous event loop in main to keep the program running and allow for future periodic tasks.
This commit is contained in:
@@ -93,10 +93,6 @@ bool CustomRobot::start() {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const auto& service : serviceList) {
|
||||
LOG_INFO("Service - name: " + service.name + ", protect: " + std::to_string(service.protect) + ", status: " + std::to_string(service.status));
|
||||
}
|
||||
|
||||
if (!SwitchService("sport_mode", false)) {
|
||||
LOG_ERROR("Failed to stop sport_mode service");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user