dds: fix return type

pull/4/head
occheung 2020-09-30 16:42:54 +08:00
parent d202886753
commit f8ccb66077
1 changed files with 2 additions and 3 deletions

View File

@ -887,12 +887,11 @@ macro_rules! impl_register_io {
for i in 0..$reg_byte_size { for i in 0..$reg_byte_size {
bytes[i] = ret[i+1]; bytes[i] = ret[i+1];
} }
debug!("Read register: {:X}, Bytes: {:X?}", addr, bytes);
Ok(bytes) Ok(bytes)
}, },
Err(e) => Err(e), Err(e) => Err(e),
}; }
debug!("Read register: {:X}, Bytes: {:X?}", addr, bytes);
Ok(bytes)
}, },
)* )*
_ => panic!("Bad address for DDS reading.") _ => panic!("Bad address for DDS reading.")