forked from M-Labs/humpback-dds
fpga config: fix unwrap bug
This commit is contained in:
parent
e994000df1
commit
f77013c290
|
@ -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();
|
||||
|
|
|
@ -13,6 +13,7 @@ use nb::block;
|
|||
|
||||
use log::{warn, debug};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum FPGAFlashError {
|
||||
SPICommunicationError,
|
||||
NegotiationError,
|
||||
|
|
Loading…
Reference in New Issue