Fix compiling, use enum class

This commit is contained in:
Mikko Ahlroth 2019-10-17 12:05:50 +03:00
parent b28b81f538
commit e24b8d0591
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
#include <Arduino.h>
#pragma once
/**
* Set to true to enable debug prints (via serial console) and false to disable.
*/

View file

@ -11,7 +11,7 @@ Game::Game(Debugger* debugger, Randomiser* randomiser)
state(State::MENU),
currentDelay(DELAY_START),
currentScore(0),
waitingBeeps({}),
waitingBeeps{},
waitingBeepsAmount(0) {
debugger->print("Initialising new game...");
}

View file

@ -2,7 +2,7 @@
#include "debugger.hpp"
#include "randomiser.hpp"
enum State { MENU, GAME, SCORE };
enum class State { MENU, GAME, SCORE };
class Game {
Debugger* debugger;