Skip to content

Commit

Permalink
[VT]: Fixed issues uploading multiple object pools to a VT
Browse files Browse the repository at this point in the history
Fixed an issue where uploading more than one object pool to a VT would
cause only the first pool to be completed.
  • Loading branch information
ad3154 committed Oct 14, 2023
1 parent f4d405f commit 8c064d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions isobus/src/isobus_virtual_terminal_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1890,8 +1890,12 @@ namespace isobus
}
else if (CurrentObjectPoolUploadState::Success == currentObjectPoolState)
{
objectPools[i].uploaded = true;
currentObjectPoolState = CurrentObjectPoolUploadState::Uninitialized;
if (false == objectPools[i].uploaded)
{
objectPools[i].uploaded = true;
CANStackLogger::CAN_stack_log(CANStackLogger::LoggingLevel::Debug, "[VT]: Object pool %u uploaded.", i + 1);
currentObjectPoolState = CurrentObjectPoolUploadState::Uninitialized;
}
}
else if (CurrentObjectPoolUploadState::Failed == currentObjectPoolState)
{
Expand All @@ -1902,6 +1906,7 @@ namespace isobus
else
{
// Transfer is in progress. Nothing to do now.
allPoolsProcessed = false;
break;
}
}
Expand Down

0 comments on commit 8c064d7

Please sign in to comment.