Fix failing pcid config parsing.

This commit is contained in:
4lDO2
2020-04-23 15:35:44 +02:00
parent 7b69d5b9b5
commit 4016b0c7b8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,5 +19,5 @@ pub struct DriverConfig {
pub device: Option<u16>,
pub device_id_range: Option<Range<u16>>,
pub command: Option<Vec<String>>,
pub use_channel: bool,
pub use_channel: Option<bool>,
}
+1 -1
View File
@@ -431,7 +431,7 @@ fn handle_parsed_header(state: Arc<State>, config: &Config, bus_num: u8,
info!("PCID SPAWN {:?}", command);
let (pcid_to_client_write, pcid_from_client_read, envs) = if driver.use_channel {
let (pcid_to_client_write, pcid_from_client_read, envs) = if driver.use_channel.unwrap_or(false) {
let mut fds1 = [0usize; 2];
let mut fds2 = [0usize; 2];