fix warnings

This commit is contained in:
hathach 2024-11-08 21:55:23 +07:00
parent 5d00488907
commit c8d104fb47
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52
2 changed files with 1 additions and 2 deletions

View File

@ -856,7 +856,7 @@ static void handle_epin_irq(uint8_t rhport) {
// Process every single packet (only whole packets can be written to fifo)
for (uint16_t i = 0; i < remain_packets; i++) {
const uint16_t remain_bytes = epin->dieptsiz_bm.xfer_size;
const uint16_t remain_bytes = (uint16_t) epin->dieptsiz_bm.xfer_size;
// Packet can not be larger than ep max size
const uint16_t xact_bytes = tu_min16(remain_bytes, xfer->max_size);

View File

@ -742,7 +742,6 @@ static void handle_rxflvl_irq(uint8_t rhport) {
// Pop control word off FIFO
const dwc2_grxstsp_t grxstsp_bm = dwc2->grxstsp_bm;
const uint8_t ch_id = grxstsp_bm.ep_ch_num;
// dwc2_channel_t* channel = &dwc2->channel[ch_id];
switch (grxstsp_bm.packet_status) {
case GRXSTS_PKTSTS_RX_DATA: {