Skip to content

Commit

Permalink
net: netdev_eth: output warning on lost interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Apr 13, 2015
1 parent 09124bd commit 03cd524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/net/link_layer/ng_netdev_eth/ng_netdev_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ void dev_eth_isr(dev_eth_t* dev)
msg.type = NG_NETDEV_MSG_TYPE_EVENT;
msg.content.value = _ISR_EVENT_RX;

msg_send(&msg, ng_netdev_eth.mac_pid);
if (msg_send(&msg, ng_netdev_eth.mac_pid) <= 0) {
puts("dev_eth_isr: possibly lost interrupt.");
}
}

void dev_eth_rx_handler(dev_eth_t* dev) {
Expand Down

0 comments on commit 03cd524

Please sign in to comment.