Skip to content

Commit

Permalink
Remove debug-mode stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hardiesoft committed May 6, 2024
1 parent d57a918 commit 7a77cc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/core1_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub fn core_1_task(
woken_by_alarm: bool,
mut timer: Timer,
) {
let dev_mode = true;
let dev_mode = false;
info!("=== Core 1 start ===");
if dev_mode {
warn!("DEV MODE");
Expand All @@ -249,7 +249,7 @@ pub fn core_1_task(
let mut shared_i2c = SharedI2C::new(i2c_config, unlocked_pin, &mut delay);

let (pio0, sm0, _, _, _) = peripherals.PIO0.split(&mut peripherals.RESETS);
let should_record_to_flash = false;
let should_record_to_flash = true;

loop {
// NOTE: Keep retrying until we get a datetime from RTC.
Expand Down Expand Up @@ -882,12 +882,11 @@ pub fn core_1_task(
let is_outside_recording_window = if !dev_mode {
!device_config.time_is_in_recording_window(&synced_date_time.date_time_utc, &None)
} else {
!device_config.time_is_in_recording_window(&synced_date_time.date_time_utc, &None)
// !device_config.time_is_in_recording_window(&synced_date_time.date_time_utc, &None)

// DEV_MODE
// let is_inside_recording_window =
// synced_date_time.date_time_utc < startup_date_time_utc + Duration::minutes(5);
// !is_inside_recording_window
let is_inside_recording_window =
synced_date_time.date_time_utc < startup_date_time_utc + Duration::minutes(5);
!is_inside_recording_window
};

let flash_storage_nearly_full = flash_storage.is_too_full_to_start_new_recordings();
Expand Down
1 change: 0 additions & 1 deletion src/device_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ impl DeviceConfig {
}

pub fn use_low_power_mode(&self) -> bool {
return true;
self.config_inner.use_low_power_mode
}

Expand Down

0 comments on commit 7a77cc9

Please sign in to comment.