Skip to content

Commit

Permalink
made 2 minor changes to make it compile on my old mac
Browse files Browse the repository at this point in the history
  • Loading branch information
braraki committed Mar 27, 2020
1 parent f55481f commit fc2b19a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e-vent.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
enum States {DEBUG_STATE, IN_STATE, PAUSE_STATE, EX_STATE};

#include <LiquidCrystal.h>
#include <RoboClaw.h>
#include "Display.h"
Expand Down Expand Up @@ -40,7 +42,6 @@ float VOL_MIN = 100;
float VOL_MAX = 450; // 900; // For full

//Setup States
enum States {DEBUG_STATE, IN_STATE, PAUSE_STATE, EX_STATE};
States state;
bool enteringState;
unsigned long stateTimer;
Expand Down Expand Up @@ -172,7 +173,7 @@ void setup() {
void loop() {
if(DEBUG){
if(Serial.available() > 0){
setState(Serial.parseInt());
setState((States) Serial.parseInt());
while(Serial.available() > 0) Serial.read();
}
}
Expand Down

0 comments on commit fc2b19a

Please sign in to comment.