mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Check if PicamJNI is supported in driver pipe (#170)
Fixes UnsatisfiedLinkErros when the JNI is not loaded.
This commit is contained in:
committed by
GitHub
parent
c3dbd45716
commit
663684fb10
@@ -52,7 +52,9 @@ public class DriverModePipeline
|
||||
new Draw2dCrosshairPipe.Draw2dCrosshairParams(frameStaticProperties);
|
||||
draw2dCrosshairPipe.setParams(draw2dCrosshairParams);
|
||||
|
||||
PicamJNI.setShouldCopyColor(true);
|
||||
if (PicamJNI.isSupported()) {
|
||||
PicamJNI.setShouldCopyColor(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user