Skip to content

Commit

Permalink
Do not request MA when shortening if not in FS/OS/LS
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed Jan 23, 2024
1 parent a13828c commit 5c6f94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EVC/Procedures/stored_information.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ void svl_shorten(char condition)
if (!MA || !MA->SvL_ma) return;
platform->debug_print("MA shortening "+std::string(1,condition));
shorten(false, *MA->SvL_ma);
if (condition != 'a' && condition != 'b' && condition != 'f' && (level == Level::N2 || level == Level::N3))
if (condition != 'a' && condition != 'b' && condition != 'f' && (level == Level::N2 || level == Level::N3) && (mode == Mode::FS || mode == Mode::LS || mode == Mode::OS))
ma_rq_reasons[3] = true;
}
void train_shorten(char condition)
{
platform->debug_print("Shortening to front "+std::string(1,condition));
shorten(true, distance::from_odometer(d_maxsafefront(confidence_data::basic())));
if (level == Level::N2 || level == Level::N3)
if ((level == Level::N2 || level == Level::N3) && (mode == Mode::FS || mode == Mode::LS || mode == Mode::OS))
ma_rq_reasons[3] = true;
}
void desk_closed_som()
Expand Down

0 comments on commit 5c6f94b

Please sign in to comment.