forked from M-Labs/humpback-dds
dds: fix return type
This commit is contained in:
parent
d202886753
commit
f8ccb66077
|
@ -887,12 +887,11 @@ macro_rules! impl_register_io {
|
|||
for i in 0..$reg_byte_size {
|
||||
bytes[i] = ret[i+1];
|
||||
}
|
||||
debug!("Read register: {:X}, Bytes: {:X?}", addr, bytes);
|
||||
Ok(bytes)
|
||||
},
|
||||
Err(e) => Err(e),
|
||||
};
|
||||
debug!("Read register: {:X}, Bytes: {:X?}", addr, bytes);
|
||||
Ok(bytes)
|
||||
}
|
||||
},
|
||||
)*
|
||||
_ => panic!("Bad address for DDS reading.")
|
||||
|
|
Loading…
Reference in New Issue