Skip to content

Commit

Permalink
Update OnRoadScreen.java
Browse files Browse the repository at this point in the history
  • Loading branch information
MankaranSingh committed Sep 25, 2022
1 parent f7a9b12 commit 4f926a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/ui/java/ai.flow.app/OnRoadScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,10 @@ public void updateCamera() {
imgBuffer = ByteBuffer.allocateDirect(1164*874*3);
}
else {
if (frameData.getNativeImageAddr() == 0)
if (frameData.getNativeImageAddr() == 0) {
imgBuffer.put(frameData.getImage().asByteBuffer());
imgBuffer.rewind();
}
}
// update K only once.
if (!cameraMatrixUpdated){
Expand Down

0 comments on commit 4f926a9

Please sign in to comment.