sensord: remove unnecessary brace pair (#25816)

Remove unnecessary brace pair
This commit is contained in:
Dean Lee
2022-09-17 10:45:51 +08:00
committed by GitHub
parent f73b041d43
commit 1a7d6665de
+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