Uncommenting of part that allow supercaps to charge up from the batteries

Dependencies:   mbed millis

Revision:
29:8149eec6d6e7
Parent:
28:ae88b18b5cb7
--- a/main.cpp	Wed Jun 15 11:13:32 2022 +0000
+++ b/main.cpp	Wed Jun 15 11:26:58 2022 +0000
@@ -306,17 +306,30 @@
         if (driveMode != 0 && remote.forward == 0) {
           driveMode = 0;
           motor1.setForward();
+          
+          FrontLight = 1;
+          BackLight = 0;
+          BeaconLight = 1;
         }
         //Set reverse
         if (driveMode != 1 && remote.reverse == 0) {
           driveMode = 1;
           motor1.setReverse();
+          
+          FrontLight = 0;
+          BackLight = 1;
+          BeaconLight = 1;
         }
         //Set park
         if (driveMode != 2 && remote.park == 0) {
           driveMode = 2;
           motor1.setPark();
           motor1.throttle(0);
+          
+          FrontLight = 0;
+          BackLight = 0;
+          BeaconLight = 1;
+          
         }
         ////Park Mode
         if (driveMode == 2) {