修改串口名称
This commit is contained in:
1 parent
1f9f550b18
commit
335c12cf6a
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user