Skip to content

Commit

Permalink
fixed UART2 detached callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Feb 22, 2024
1 parent 2471a30 commit 489f076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uCNC/src/hal/mcus/avr/mcu_avr.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ ISR(COM2_RX_vect, ISR_BLOCK)
BUFFER_STORE(uart2_rx);
}
#else
mcu_uart_rx_cb(COM2_INREG);
mcu_uart2_rx_cb(COM2_INREG);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion uCNC/src/hal/mcus/esp32/mcu_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ void mcu_dotasks(void)
#else
for (i = 0; i < rxlen; i++)
{
mcu_uart_rx_cb((uint8_t)rxdata[i]);
mcu_uart2_rx_cb((uint8_t)rxdata[i]);
}
#endif
#endif
Expand Down

0 comments on commit 489f076

Please sign in to comment.