Skip to content

Commit

Permalink
added the corner case of the simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Aug 27, 2024
1 parent 89f1714 commit f5c05eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1800,8 +1800,9 @@ HardwareReadWriteStatus ResourceManager::read(
try
{
if (
resource_storage_->hardware_info_map_[component.get_name()].read_rate == 0 ||
resource_storage_->hardware_info_map_[component.get_name()].read_rate ==
resource_storage_->cm_update_rate_)
resource_storage_->cm_update_rate_)
{
ret_val = component.read(time, period);
}
Expand Down Expand Up @@ -1884,8 +1885,9 @@ HardwareReadWriteStatus ResourceManager::write(
try
{
if (
resource_storage_->hardware_info_map_[component.get_name()].write_rate == 0 ||
resource_storage_->hardware_info_map_[component.get_name()].write_rate ==
resource_storage_->cm_update_rate_)
resource_storage_->cm_update_rate_)
{
ret_val = component.write(time, period);
}
Expand Down

0 comments on commit f5c05eb

Please sign in to comment.