Skip to content

Commit

Permalink
Merge branch 'pcic_p_command_ack' into 'main'
Browse files Browse the repository at this point in the history
PCIC p command ACK based frame reception.

Closes #283

See merge request syntron/support/csr/ifm3d/ifm3d!374
  • Loading branch information
BigBoot committed Apr 5, 2024
2 parents 12e82e7 + 567e434 commit f8bc685
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fix receiving frames with default format before PCIC p command
has been acknowledged

## 1.5.2 - 2024-02-20
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,14 @@ ifm3d::FrameGrabber::Impl::PayloadHandler(const asio::error_code& ec,

if (ticket_id == ifm3d::TICKET_IMAGE || ticket_id == ifm3d::TICKET_ALGO_DGB)
{
this->ImageHandler();
if (this->is_ready_)
{
this->ImageHandler();
}
else
{
LOG_DEBUG("Waiting for pcic command ACK!");
}
}
else if (ticket_id == ifm3d::TICKET_ASYNC_ERROR)
{
Expand Down Expand Up @@ -687,7 +694,6 @@ ifm3d::FrameGrabber::Impl::ImageHandler()
this->new_frame_callback_(frame);
}
}

catch (std::exception ex)
{
LOG_WARNING("Bad image: {}", ex.what());
Expand Down

0 comments on commit f8bc685

Please sign in to comment.