sensord: remove unnecessary brace pair (#25816)

Remove unnecessary brace pair
old-commit-hash: 1a7d6665deafc1e35e5f8d56106a81a4686a6e44
This commit is contained in:
Dean Lee
2022-09-17 10:45:51 +08:00
committed by GitHub
parent cc473bf45b
commit b750859d52
+2 -4
View File
@@ -88,10 +88,8 @@ void interrupt_loop(int fd, std::vector<Sensor *>& sensors, PubMaster& pm) {
events.adoptWithCaveats(i, kj::mv(collected_events[i]));
}
{
std::lock_guard<std::mutex> lock(pm_mutex);
pm.send("sensorEvents", msg);
}
std::lock_guard<std::mutex> lock(pm_mutex);
pm.send("sensorEvents", msg);
}
// poweroff sensors, disable interrupts