pub(crate) fn init_hardware_from_db_data() -> Result<(), init::InitError> {
    let target_data = DB.config_tree.c_get(keys::config::TARGETS).unwrap().expect("Failed to get the target data in the DB. This function can only be called once the target data has been initialized in the DB.");
    let probe_data = DB.config_tree.c_get(keys::config::PROBES).unwrap().expect("Failed to get the probe data in the DB. This function can only be called once the probe data has been initialized in the DB.");

    init::initialize_target_data(&TSS, target_data)?;
    init::initialize_probe_data(&TESTCHANNELS, probe_data)
}
/// Initializes the TSS and TESTCHANNELS statics according to the data provided by the DB. This function fails if the data in the DB is not in sync with the detected hardware.
///
/// # Panics
/// If the data in the DB has not been initialized.
Initializes the TSS and TESTCHANNELS statics according to the data provided by the DB. This function fails if the data in the DB is not in sync with the detected hardware.
Initializes the TSS and TESTCHANNELS statics according to the data provided by the DB . This function fails if the data in the DB is not in sync with the detected hardware .
pub(crate) fn init_hardware_from_db_data() -> Result<(), init::InitError> {
    let target_data = DB.config_tree.c_get(keys::config::TARGETS).unwrap().expect("Failed to get the target data in the DB. This function can only be called once the target data has been initialized in the DB.");
    let probe_data = DB.config_tree.c_get(keys::config::PROBES).unwrap().expect("Failed to get the probe data in the DB. This function can only be called once the probe data has been initialized in the DB.");
    init::initialize_target_data(&TSS, target_data)?;
    init::initialize_probe_data(&TESTCHANNELS, probe_data)
}
pub ( crate ) fn init_hardware_from_db_data ( ) -> Result < ( ) , init :: InitError > { let target_data = DB . config_tree . c_get ( keys :: config :: TARGETS ) . unwrap ( ) . expect ( " " ) ; let probe_data = DB . config_tree . c_get ( keys :: config :: PROBES ) . unwrap ( ) . expect ( " " ) ; init :: initialize_target_data ( & TSS , target_data ) ? ; init :: initialize_probe_data ( & TESTCHANNELS , probe_data ) }
Initializes the TSS and TESTCHANNELS statics according to the data provided by the DB.
Initializes the TSS and TESTCHANNELS statics according to the data provided by the DB .
panics
If the data in the DB has not been initialized.
If the data in the DB has not been initialized .