File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ipa/rpi/controller/rpi Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ void Sync::process([[maybe_unused]] StatisticsPtr &stats, Metadata *imageMetadat
260260 int64_t clientFrameTimestampNearest = clientFrameTimestamp - framePeriodErrors * frameDurationEstimated_;
261261 /* We must shorten a single client frame by this amount if it exceeds the minimum: */
262262 int32_t correction = clientFrameTimestampNearest - serverFrameTimestamp;
263- if (std::abs (correction) < minAdjustment_)
263+ if (static_cast < uint32_t >( std::abs (correction) ) < minAdjustment_)
264264 correction = 0 ;
265265
266266 LOG (RPiSync, Debug) << " Received packet (frameNumber " << frameCount_ << " ):" ;
@@ -314,12 +314,12 @@ void Sync::setMode(Mode mode)
314314void Sync::setFrameDuration (libcamera::utils::Duration frameDuration)
315315{
316316 frameDuration_ = frameDuration;
317- };
317+ }
318318
319319void Sync::setReadyFrame (unsigned int frame)
320320{
321321 readyFrame_ = frame;
322- };
322+ }
323323
324324/* Register algorithm with the system. */
325325static Algorithm *create (Controller *controller)
You can’t perform that action at this time.
0 commit comments