Skip to content

Commit

Permalink
remove surpus statement in erase trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
iltis42 committed May 11, 2024
1 parent c8daf55 commit 9456320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/Target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ void Target::checkAlarm(){
void Target::draw(){
checkAlarm();
int size = std::min( 30.0, std::min( 80.0, 10.0+10.0/dist ) );
if( old_x != -1000 && x != -1000 ){
if( old_x != -1000 ){ // delete target if it was drawn before
// ESP_LOGI(FNAME,"drawFlarmTarget() erase old x:%d old_x:%d", x, old_x );
egl->setColor( COLOR_BLACK ); // BLACK
drawFlarmTarget( old_x, old_y, old_track, old_size, true, old_closest );
Expand Down

0 comments on commit 9456320

Please sign in to comment.