From ee91c550a245942e7e2f72b25fe961bc64aa4bd4 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 30 Apr 2021 08:10:31 +0200 Subject: [PATCH] Fix score display when winning --- super_simon/src/utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/super_simon/src/utils.cpp b/super_simon/src/utils.cpp index 3e530fa..047b09f 100644 --- a/super_simon/src/utils.cpp +++ b/super_simon/src/utils.cpp @@ -90,6 +90,7 @@ byte waitForButton() { void endGame(LiquidCrystal lcd, bool win, byte score) { lcd.clear(); if (win) { + score++; // Compensate for missing "+1" in the main loop. lcd.print("Bravo!"); } else {