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

Dependencies:   mbed millis

Revision:
24:15239fb901b0
Parent:
21:0cc8e3ee53f6
Child:
25:1e42ee248b89
--- a/main.cpp	Tue May 17 10:53:59 2022 +0000
+++ b/main.cpp	Mon Jun 13 09:35:46 2022 +0000
@@ -67,7 +67,7 @@
   else {//REGEN BRAKING
     if (challenge.regenBrakingActive == true) { // REGEN BRAKING WITH OVERVOLTAGE SAFETY CHECK
       if (brakeRate > 0) {
-        motor1.setPark();
+        motor1.brake(brakeRate);
       }
       else {
         motor1.setForward();