added commander actions for logfile and image downlink
This commit is contained in:
@@ -106,6 +106,7 @@ impl ExperimentController {
|
||||
}
|
||||
}
|
||||
ActionId::DownlinkLogfile => {
|
||||
log::info!("Copying logfile into downlink folder");
|
||||
if let Some(logfile_path) = LOGFILE_PATH.get() {
|
||||
if let Ok(logfile_path) = <PathBuf as Clone>::clone(logfile_path)
|
||||
.into_os_string()
|
||||
@@ -124,6 +125,7 @@ impl ExperimentController {
|
||||
|
||||
// downlink images, default will be the last image, otherwise specified counting down (2 = second to last image, etc.)
|
||||
ActionId::DownlinkImages => {
|
||||
log::info!("Copying images into low priority downlink folder");
|
||||
if let Ok(image_path) = match action_req.variant {
|
||||
ActionRequestVariant::VecData(data) => {
|
||||
let index = data[0];
|
||||
|
||||
Reference in New Issue
Block a user