RecordFront remove ifdef (#19773)

old-commit-hash: 10790304c9882d726962e2b801c7810939b2c144
This commit is contained in:
Willem Melching
2021-01-15 22:21:39 +01:00
committed by GitHub
parent 4eebd421a5
commit a04de5683e
+1 -5
View File
@@ -465,11 +465,6 @@ int main(int argc, char** argv) {
segment_length = atoi(getenv("LOGGERD_SEGMENT_LENGTH"));
}
bool record_front = true;
#ifndef QCOM2
record_front = Params().read_db_bool("RecordFront");
#endif
clear_locks();
// setup messaging
@@ -515,6 +510,7 @@ int main(int argc, char** argv) {
s.rotate_state[LOG_CAMERA_ID_FCAMERA].enabled = true;
#if defined(QCOM) || defined(QCOM2)
bool record_front = Params().read_db_bool("RecordFront");
if (record_front) {
encoder_threads.push_back(std::thread(encoder_thread, LOG_CAMERA_ID_DCAMERA));
s.rotate_state[LOG_CAMERA_ID_DCAMERA].enabled = true;