Skip to content

Commit 761ce83

Browse files
committed
Fix bug trying to serialize -1 as a long.
1 parent 553f86c commit 761ce83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/us/ihmc/robotDataLogger/logger/ZEDSVOLoggerManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ private void onZEDSDKAnnounceMessage(ZEDSDKAnnounce message)
7777
if (zedLoggers.containsKey(announceHash))
7878
{
7979
ZEDSVOLogger zedSVOLogger = zedLoggers.get(announceHash);
80-
if (message.getControllerTimestamp() != -1)
80+
if (message.getControllerTimestamp() != 0)
8181
zedSVOLogger.synchronize(message);
8282

8383
if (zedSVOLogger.isClosed())
8484
{
8585
zedLoggers.remove(announceHash);
8686
}
8787
}
88-
else if (message.getControllerTimestamp() != -1)
88+
else if (message.getControllerTimestamp() != 0)
8989
{
9090
File perceptionDir = new File(tempDirectory, "perception");
9191
perceptionDir.mkdirs();

0 commit comments

Comments
 (0)