fpga config: fix unwrap bug

pull/4/head
occheung 2020-09-17 11:48:32 +08:00
parent e994000df1
commit f77013c290
2 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,7 @@ fn main() -> ! {
// Pre-load the configuration bytes
let config_data = include_bytes!("../build/top.bin");
flash_ice40_fpga(fpga_cfg_spi, fpga_ss, fpga_creset, fpga_cdone, delay, config_data)?;
flash_ice40_fpga(fpga_cfg_spi, fpga_ss, fpga_creset, fpga_cdone, delay, config_data).unwrap();
loop {
nop();

View File

@ -13,6 +13,7 @@ use nb::block;
use log::{warn, debug};
#[derive(Debug)]
pub enum FPGAFlashError {
SPICommunicationError,
NegotiationError,