GPIO checked for Raspberry Pi 5B
This commit is contained in:
@@ -24,12 +24,14 @@ public class PanTiltController {
|
||||
if (comports.length>0){
|
||||
for (SerialPort port : comports){
|
||||
Logger.info("Available Serial Port : {}", port.getSystemPortName());
|
||||
if (port.getSystemPortName().equals(portname)){
|
||||
|
||||
if (portname.contains(port.getSystemPortName())){
|
||||
Logger.info("Serial Port {} found", portname);
|
||||
serialPort = port;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
if (serialPort!=null){
|
||||
serialPort.setBaudRate(baudrate);
|
||||
|
||||
Reference in New Issue
Block a user