Remove debug prints
This commit is contained in:
parent
26e0823c35
commit
28e2570533
@ -216,14 +216,12 @@ impl<'d, T: Instance> I2cDevice<'d, T> {
|
|||||||
pub async fn respond_to_read(&mut self, buffer: &[u8]) -> Result<ReadStatus, Error> {
|
pub async fn respond_to_read(&mut self, buffer: &[u8]) -> Result<ReadStatus, Error> {
|
||||||
let p = T::regs();
|
let p = T::regs();
|
||||||
|
|
||||||
info!("buff: {}", buffer);
|
|
||||||
let mut chunks = buffer.chunks(FIFO_SIZE as usize);
|
let mut chunks = buffer.chunks(FIFO_SIZE as usize);
|
||||||
|
|
||||||
let ret = self
|
let ret = self
|
||||||
.wait_on(
|
.wait_on(
|
||||||
|me| {
|
|me| {
|
||||||
if let Err(abort_reason) = me.read_and_clear_abort_reason() {
|
if let Err(abort_reason) = me.read_and_clear_abort_reason() {
|
||||||
info!("ar: {}", abort_reason);
|
|
||||||
if let Error::Abort(AbortReason::TxNotEmpty(bytes)) = abort_reason {
|
if let Error::Abort(AbortReason::TxNotEmpty(bytes)) = abort_reason {
|
||||||
return Poll::Ready(Ok(ReadStatus::LeftoverBytes(bytes)));
|
return Poll::Ready(Ok(ReadStatus::LeftoverBytes(bytes)));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user