Skip to content

Commit

Permalink
Explicitly ignoring return values
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Nov 8, 2023
1 parent 1139a87 commit e47a8c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/APPConvoyLeader/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ void App::reportOdometry()
payload.yPos = yPos;
payload.orientation = odometry.getOrientation();

m_smpServer.sendData(m_serialMuxProtChannelIdOdometry, reinterpret_cast<uint8_t*>(&payload), sizeof(payload));
/* Ignoring return value, as error handling is not available. */
(void)m_smpServer.sendData(m_serialMuxProtChannelIdOdometry, reinterpret_cast<uint8_t*>(&payload), sizeof(payload));
}

void App::reportSpeed()
Expand All @@ -149,7 +150,8 @@ void App::reportSpeed()
payload.left = speedometer.getLinearSpeedLeft();
payload.right = speedometer.getLinearSpeedRight();

m_smpServer.sendData(m_serialMuxProtChannelIdSpeed, reinterpret_cast<uint8_t*>(&payload), sizeof(payload));
/* Ignoring return value, as error handling is not available. */
(void)m_smpServer.sendData(m_serialMuxProtChannelIdSpeed, reinterpret_cast<uint8_t*>(&payload), sizeof(payload));
}

/******************************************************************************
Expand Down

0 comments on commit e47a8c1

Please sign in to comment.