Skip to content

Commit

Permalink
Added clearing of LCD, resolved #10
Browse files Browse the repository at this point in the history
  • Loading branch information
sm6yvr committed Jul 14, 2017
1 parent 7bd5f48 commit 77b69c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Liam/Error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ ERROR::ERROR(MYDISPLAY* display_, int led_pin_, CONTROLLER* Mower_) {
}

void ERROR::flag(int error_number_) {

Mower->stopCutter();
Mower->stop();
mylcd->clear();

mylcd->setCursor(5,0);
mylcd->print("Error!!");
Expand Down Expand Up @@ -94,7 +95,7 @@ void ERROR::flag(int error_number_) {
}

// blink LED forever
while (true)
while (true)
blink_led(error_number_);
}

Expand Down

0 comments on commit 77b69c8

Please sign in to comment.