Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistejamin authored and Keruspe committed May 2, 2020
1 parent 148090c commit bb72af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcs/pressure_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ void PressureController::updatePeakPressure() {

if (abs(plateauDelta) > 20) {
m_maxPeakPressureCommand =
min(min(m_peakPressure, m_maxPeakPressureCommand) + plateauDelta,
min((min(m_peakPressure, m_maxPeakPressureCommand) + plateauDelta),
static_cast<int>(CONST_MAX_PEAK_PRESSURE));
} else if ((abs(plateauDelta) < 20) && (abs(plateauDelta) > 5)) {
m_maxPeakPressureCommand =
Expand Down

0 comments on commit bb72af7

Please sign in to comment.