Skip to content

Commit 390f87d

Browse files
committed
Added TODOs for safer sending
1 parent ba78c6d commit 390f87d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/udp/outgoing_packet.rs

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ impl<SpiBus: ActiveBus, NetworkImpl: Network, SocketImpl: Socket>
1818
host: IpAddress,
1919
port: u16,
2020
) -> Result<Self, SpiBus::Error> {
21+
// TODO set interrupt mask to SendOk&Timeout
2122
udp_socket
2223
.socket
2324
.set_destination_ip(&mut udp_socket.w5500.bus, host)?;
@@ -52,6 +53,8 @@ impl<SpiBus: ActiveBus, NetworkImpl: Network, SocketImpl: Socket>
5253
.socket
5354
.command(&mut self.udp_socket.w5500.bus, socketn::Command::Send)?;
5455
loop {
56+
// TODO wait until TX pointers match first
57+
// TODO check for Timeout interrupt
5558
// wait until send is complete
5659
if self
5760
.udp_socket

0 commit comments

Comments
 (0)