Skip to content

Commit ad9e816

Browse files
committed
fix: remove duplicated _write function when using RTT
1 parent a468d6e commit ad9e816

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • Src/HALAL/Services/Communication/UART

Src/HALAL/Services/Communication/UART/UART.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,7 @@ UART_HandleTypeDef* UART::get_handle(uint8_t id) {
221221
extern "C" {
222222
#endif
223223

224-
int _write(int file, char* str, int len) {
225224

226-
UART::print_by_uart(str , len);
227-
if (*str == '\n') {
228-
char retorno[1] = {'\r'};
229-
UART::print_by_uart(retorno, 1);
230-
}
231-
232-
233-
return len;
234-
}
235225

236226
#ifdef __cplusplus
237227
}

0 commit comments

Comments
 (0)