Why when I try set serial port, function return “Input/output error”?

后端 未结 0 1067
情深已故
情深已故 2021-02-04 02:50

I try set in c++ some serial port, but when I try function tcsetatrr, its return error -1. Port opens without problems.

char port_name[] = "/dev/ttyS1";         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题