diff --git a/others/src/serial.cpp b/others/src/serial.cpp index d2b599f..0ca3991 100644 --- a/others/src/serial.cpp +++ b/others/src/serial.cpp @@ -181,7 +181,7 @@ bool Serial::ReadData(unsigned char *buffer, unsigned int length) { using namespace std; string get_uart_dev_name() { - FILE *ls = popen("ls /dev/ttyCH341USB* --color=never", "r"); + FILE *ls = popen("ls /dev/ttyCH340 --color=never", "r"); char name[20] = {0}; fscanf(ls, "%s", name); return name;