fix empty interrupt config
This commit is contained in:
parent
7896342ed9
commit
db037f5015
@ -102,7 +102,7 @@ pub fn get_interrupt_config(kernel : &PathBuf, path : &PathBuf) -> Vec<(usize,u3
|
||||
for r in reader.records() {
|
||||
let rec = r.expect("CSV entry error");
|
||||
if stem == &rec[0] {
|
||||
let ret = rec[6].split(';').map(|x| {
|
||||
let ret = rec[6].split(';').filter(|x| x != &"").map(|x| {
|
||||
let pair = x.split_once('#').expect("Interrupt config error");
|
||||
(pair.0.parse().expect("Interrupt config error"), pair.1.parse().expect("Interrupt config error"))
|
||||
}).collect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user