Skip to content

Commit

Permalink
Make setting the camera time a soft error
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Aug 1, 2024
1 parent f8bb04f commit 56d343e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/camthread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ impl NeoCamThread {
log::trace!(" - Connected");

sleep(Duration::from_secs(2)).await; // Delay a little since some calls will error if camera is waking up
update_camera_time(&camera, &name, config.update_time).await?;
if let Err(e) = update_camera_time(&camera, &name, config.update_time).await {
log::warn!("Could not set camera time, (perhaps missing on this camera of your login in not an admin): {e:?}");
}
sleep(Duration::from_secs(2)).await; // Delay a little since some calls will error if camera is waking up

self.camera_watch.send_replace(Arc::downgrade(&camera));
Expand Down

0 comments on commit 56d343e

Please sign in to comment.