Skip to content

Commit

Permalink
credit_manager: print a line (instead of the previous line)
Browse files Browse the repository at this point in the history
Before this commit, credit_manager repeated the previous buffer.

fixes #58
  • Loading branch information
stapelberg committed Nov 13, 2023
1 parent 01f155c commit aec8e33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/credit_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ static void deposit_credit_idx(int8_t i) {

credit->credit += (signed int)deposit;

sprintf(print_buffer, "%c%s - %d Cent f" uUML "r %s eingezahlt, total: %d Cent\r",
17, time, deposit, credit->nickname, credit->credit);
print_the_buffer();
cprintf("\r\n\r\nEinzahlung durchgef" uUML "hrt");
GOOD("\r\nDr" uUML "cke RETURN...\r\n");
Expand Down

0 comments on commit aec8e33

Please sign in to comment.