Merge branch 'uart' of github.com:Nic0w/rp-hal into uart

This commit is contained in:
Nic0w 2021-04-26 09:20:22 +02:00
commit 920d0dc897

View file

@ -230,12 +230,12 @@ impl<D: UARTDevice> UARTPeripheral<Enabled, D> {
}
}
bytes_written += 1;
self.device.uartdr.write(|w| unsafe {
w.data().bits(*c);
w
})
});
bytes_written += 1;
}
return Ok(&data[bytes_written..])
}