  
      rear, front = get_snapshots(frame, front_frame, focus_perc_threshold)
    finally:
      managed_processes['camerad'].stop()
      HARDWARE.set_power_save(True)
  
      params.put_bool("IsTakingSnapshot", False)
      set_offroad_alert("Offroad_IsTakingSnapshot", False)
  
    if not front_camera_allowed:
      front = None
 
</s> remove     HARDWARE.set_power_save(False)
 </s> add  </s> remove   assert(ret == 0);
 </s> add   assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores </s> remove from selfdrive.hardware import HARDWARE, TICI
 </s> add from selfdrive.hardware import TICI
  
      rear, front = get_snapshots(frame, front_frame, focus_perc_threshold)
    finally:
      managed_processes['camerad'].stop()


      params.put_bool("IsTakingSnapshot", False)
      set_offroad_alert("Offroad_IsTakingSnapshot", False)
  
    if not front_camera_allowed:
      front = None
keep keep keep keep replace replace keep keep keep keep keep
 camerad: allow core affinity setting to fail while offroad (#22664)

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/camerad/snapshot/snapshot.py