mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Fix path loads on linux
This commit is contained in:
@@ -81,7 +81,7 @@ public class Camera {
|
||||
path = usbCamInfo.path;
|
||||
} else {
|
||||
var truePath = Arrays.stream(usbCamInfo.otherPaths).filter(x -> x.contains("/dev/v4l/by-path")).findFirst();
|
||||
path = truePath.isPresent() ? truePath.toString() : null;
|
||||
path = truePath.orElse(null);
|
||||
}
|
||||
|
||||
streamDivisor = divisor;
|
||||
|
||||
Reference in New Issue
Block a user