diff options
| author | Hardy Griech <[email protected]> | 2023-08-11 18:04:34 +0200 |
|---|---|---|
| committer | Hardy Griech <[email protected]> | 2023-08-11 18:04:34 +0200 |
| commit | 798ff807b3361a5859945cb23c3d0fd7d1a5679f (patch) | |
| tree | 71f02159329d7cb0309a17e4c21e7f25a8aeb83b /src | |
| parent | 92457ec99f1690b772ef9fa6b348256701c7fcf7 (diff) | |
removed obsolete tud_network_link_state_cb()
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/net/ncm_device.c | 7 | ||||
| -rw-r--r-- | src/class/net/net_device.h | 5 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/class/net/ncm_device.c b/src/class/net/ncm_device.c index 226c42c4e..dc086cf5c 100644 --- a/src/class/net/ncm_device.c +++ b/src/class/net/ncm_device.c @@ -337,11 +337,6 @@ static void ncm_report(void) } } -TU_ATTR_WEAK void tud_network_link_state_cb(bool state) -{ - (void)state; -} - // Handle class control request // return false to stall control endpoint (e.g unsupported request) bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request) @@ -381,8 +376,6 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t ncm_report(); } } - - tud_network_link_state_cb(ncm_interface.itf_data_alt); } tud_control_status(rhport, request); diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h index 399916355..454fde861 100644 --- a/src/class/net/net_device.h +++ b/src/class/net/net_device.h @@ -96,11 +96,6 @@ void tud_network_init_cb(void); // TODO removed later since it is not part of tinyusb stack extern uint8_t tud_network_mac_address[6]; -//------------- NCM -------------// - -// callback to client providing optional indication of internal state of network driver -void tud_network_link_state_cb(bool state); - //--------------------------------------------------------------------+ // INTERNAL USBD-CLASS DRIVER API //--------------------------------------------------------------------+ |
