Dependencies:   TextLCD MQTT

Revision:
16:cb7cbf2cc23b
Parent:
9:f5981ced0b47
--- a/Road.h	Fri Dec 13 21:31:24 2019 +0000
+++ b/Road.h	Fri Dec 13 22:14:27 2019 +0000
@@ -15,6 +15,7 @@
     EventFlags done_flags;
     int active_cars;
     int intersection_car;
+    int wait_counter; 
     static Road* road_in_use(Road* new_road);
     static int ready(int new_ready);
     
@@ -24,6 +25,7 @@
     void wait_for_car_update();
     int check_exit_cars(int cars[]);
     void update_car_speed(int id, int speed);
+    void update_wait_counter(); 
     
     void print_status();
     void publish_car_info();