Skip to content

Commit f2fd8f2

Browse files
testing camera behaviour
1 parent 2f9f9d8 commit f2fd8f2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/sysutil_firstboot.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "sysutil_config.h"
3131
#include "sysutil_part.h"
3232
#include "sysutil_platform.h"
33+
#include "sysutil_settings.h"
3334
#include "sysutil_status.h"
3435

3536
namespace sysutil {
@@ -99,6 +100,8 @@ void run_firstboot_tasks() {
99100
if (resize_partition_firstboot()) {
100101
needs_reboot = true;
101102
}
103+
mount_known_partitions();
104+
sync_settings_from_files();
102105
if (apply_camera_config_if_needed()) {
103106
needs_reboot = true;
104107
}

src/sysutil_settings.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ void sync_settings_from_files() {
174174
changed = true;
175175
}
176176

177-
if (file_exists("/Config/camera1.txt")) {
178-
const auto value = read_int_file("/Config/camera1.txt");
179-
if (value.has_value()) {
180-
config.camera_type = value;
181-
changed = true;
182-
}
183-
remove_file_if_exists("/Config/camera1.txt");
184-
}
185-
186177
const bool has_record = file_exists(kRecordFile);
187178
const bool has_air = file_exists(kAirFile);
188179
const bool has_ground = file_exists(kGroundFile);

0 commit comments

Comments
 (0)