diff options
| author | hathach <[email protected]> | 2013-07-19 12:08:04 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-19 12:08:04 +0700 |
| commit | d3e83bc802c010c8272b0a54625489914f693515 (patch) | |
| tree | 764dd6aa43c89f28348032f53e421496596b0dba /tinyusb/class | |
| parent | 23f4d7356f822692471f6341791940678a75d6d2 (diff) | |
print out mac address
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/cdc_rndis_host.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tinyusb/class/cdc_rndis_host.c b/tinyusb/class/cdc_rndis_host.c index 1f6720ef4..5ae808b68 100644 --- a/tinyusb/class/cdc_rndis_host.c +++ b/tinyusb/class/cdc_rndis_host.c @@ -189,6 +189,7 @@ tusb_error_t rndish_open_subtask(uint8_t dev_addr, cdch_data_t *p_cdc) if ( TUSB_ERROR_NONE != error ) SUBTASK_EXIT(error); rndis_msg_query_cmplt_t * const p_query_cmpt = (rndis_msg_query_cmplt_t *) msg_payload; + SUBTASK_ASSERT(p_query_cmpt->type == RNDIS_MSG_QUERY_CMPLT && p_query_cmpt->status == RNDIS_STATUS_SUCCESS); memcpy(rndish_data[dev_addr-1].mac_address, msg_payload + 8 + p_query_cmpt->buffer_offset, 6); if ( tusbh_cdc_rndis_mounted_cb ) |
