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:
2025-09-08 20:11:08 +08:00
parent 99ca9456c0
commit e7bfce9dcb
3 changed files with 12 additions and 6 deletions

View File

@@ -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;