From 341fd8b4d7f453b100933800c2825f831fe35591 Mon Sep 17 00:00:00 2001
From: ayush1301 <ayush.ag1301@gmail.com>
Date: Fri, 22 Oct 2021 13:32:45 +0100
Subject: [PATCH] Recovery for stuck while going up the ramp

---
 main/main.ino | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/main.ino b/main/main.ino
index 83f7bc9..02edc9c 100644
--- a/main/main.ino
+++ b/main/main.ino
@@ -62,7 +62,6 @@ void loop() {
       if (IR_check_val != 0 && cur_status == IR_check_val) {
         cur_loop_count += 1;
         if (cur_loop_count > 800) {
-          Serial.println("RECOVERY CODE");
           status_repeat = true;
         }
         else {
@@ -76,6 +75,7 @@ void loop() {
       }
       
       if (status_repeat) {
+        Serial.println("RECOVERY CODE");
         move_both(motors, 255);
         continue;
       }
-- 
GitLab