Updated embedded-nal and removed (now-redundent) Interface struct

This commit is contained in:
Jonah Dahlquist 2021-02-15 17:17:08 -08:00
commit 55097322a0
5 changed files with 14 additions and 71 deletions

View file

@ -74,10 +74,6 @@ impl<SpiBus: ActiveBus, HostImpl: Host> Device<SpiBus, HostImpl> {
Ok(phy[0].into())
}
pub fn into_interface(self) -> Interface<SpiBus, HostImpl> {
self.into()
}
pub fn release_socket(&mut self, socket: Socket) {
self.sockets.set_bit(socket.index.into(), true);
}