Skip to content

Commit

Permalink
Fix #262
Browse files Browse the repository at this point in the history
  • Loading branch information
keesverruijt committed Aug 15, 2017
1 parent 675637a commit ee7e7a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RadarMarpa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ void RadarArpa::AcquireOrDeleteMarpaTarget(Position target_pos, int status) {
}
i_target = m_number_of_targets;
m_number_of_targets++;
m_pi->NotifyRadarWindowViz();
} else {
LOG_INFO(wxT("BR24radar_pi: RadarArpa:: Error, max targets exceeded "));
return;
Expand Down Expand Up @@ -607,6 +608,9 @@ void RadarArpa::RefreshArpaTargets() {
m_number_of_targets--;
// set the lost target at the last position
m_targets[m_number_of_targets] = lost;
if (m_number_of_targets == 0) {
m_pi->NotifyRadarWindowViz();
}
}
}
}
Expand Down Expand Up @@ -1145,6 +1149,9 @@ int RadarArpa::AcquireNewARPATarget(Polar pol, int status) {
}
i = m_number_of_targets;
m_number_of_targets++;
if (m_number_of_targets == 1) {
m_pi->NotifyRadarWindowViz();
}
} else {
LOG_INFO(wxT("BR24radar_pi: RadarArpa:: Error, max targets exceeded %i"), m_number_of_targets);
return -1;
Expand Down

0 comments on commit ee7e7a4

Please sign in to comment.