Determined source of failed imports
All checks were successful
Basic Cargo Checks / docker-check (push) Successful in 1m22s
Basic Cargo Checks / docker-build (push) Successful in 2m9s

Matching a split against a value that contains the split character will
never work.
This commit is contained in:
Blizzard Finnegan 2023-06-21 13:00:33 -04:00
parent ad887a536e
commit 9fe4197e52
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E

View file

@ -3,9 +3,9 @@ use crate::tty::{TTY, Response,Command};
use rppal::gpio::{Gpio,OutputPin};
const TEMP_WAIT:Duration = Duration::from_secs(3);
const REBOOTS_SECTION: &str = "Reboots: ";
const BP_SECTION: &str = "Successful BP tests: ";
const TEMP_SECTION: &str = "Successful temp tests: ";
const REBOOTS_SECTION: &str = "Reboots";
const BP_SECTION: &str = "Successful BP tests";
const TEMP_SECTION: &str = "Successful temp tests";
const OUTPUT_FOLDER: &str = "output/";
const UNINITIALISED_SERIAL: &str = "uninitialised";
const SERIAL_HEADER: &str = "DtCtrlCfgDeviceSerialNum";
@ -82,7 +82,9 @@ impl Device{
self.temp_offset = value;
log::trace!("Temp offset set to {:?}",self.temp_offset);
},
_ => ()
_ => {
log::info!("Invalid import value: [{:?}]. Please ensure that the output directory is clean.",section_and_data);
}
};
}
Err(_) => {