From 9c717e545676ed77e1a524a5024106879caa3585 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Thu, 27 Feb 2020 12:24:36 -0600 Subject: [PATCH] Remove redundant substring --- src/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a6cdd9c..5f18ead 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -147,7 +147,6 @@ void autonomous(void) { instructions = instructions.substr(y + 1); y = instructions.find(" ", 5); pos = strtod(instructions.substr(0, y).c_str(), NULL); - instructions = instructions.substr(y + 1); TiltMotor.rotateTo(pos, degrees, vel, velocityUnits::pct, false); wait(20, msec); }