fn preflight_checks(&self) -> bool {
        let device = self.get_selected_device();

        let checks = &self.dfu_file_checks;

        device.is_some()
            && self.dfu_file.is_some()
            && checks.crc_valid
            && checks.dfu_version_valid
            && checks.vendor_id_accepted
            && checks.product_id_accepted
            && checks.targets_valid
    }
/// Check if everything is ready to program the device
Check if everything is ready to program the device
Check if everything is ready to program the device
fn preflight_checks(&self) -> bool {
        let device = self.get_selected_device();
        let checks = &self.dfu_file_checks;
        device.is_some()
            && self.dfu_file.is_some()
            && checks.crc_valid
            && checks.dfu_version_valid
            && checks.vendor_id_accepted
            && checks.product_id_accepted
            && checks.targets_valid
    }
fn preflight_checks ( & self ) -> bool { let device = self . get_selected_device ( ) ; let checks = & self . dfu_file_checks ; device . is_some ( ) && self . dfu_file . is_some ( ) && checks . crc_valid && checks . dfu_version_valid && checks . vendor_id_accepted && checks . product_id_accepted && checks . targets_valid }
Check if everything is ready to program the device
Check if everything is ready to program the device
&self