Add pi version check (#360)

Should prevent GPU acceleration on Pi 4
This commit is contained in:
Matt
2021-12-18 13:12:53 -05:00
committed by GitHub
parent 49048c3998
commit d6e1e28fc2
7 changed files with 79 additions and 8 deletions

View File

@@ -169,7 +169,8 @@ public class Main {
"Starting PhotonVision version "
+ PhotonVersion.versionString
+ " on "
+ Platform.CurrentPlatform.toString());
+ Platform.currentPlatform.toString()
+ (Platform.isRaspberryPi() ? (" (Pi " + Platform.currentPiVersion.name() + ")") : ""));
try {
CameraServerCvJNI.forceLoad();