From 291ae33595cba0931f5a99d5aa87d0bc39466e28 Mon Sep 17 00:00:00 2001 From: Matt McWilliams Date: Thu, 12 May 2016 13:48:59 -0400 Subject: [PATCH] Remove timer code, was doing nothing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Will restore timer for Metro version of the firmware for profiling different motors. Doesn’t make sense here where the Trinket Pro can’t serial out. --- ino/intval2_buttons.ino | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ino/intval2_buttons.ino b/ino/intval2_buttons.ino index 6fe2736..2f3ce01 100644 --- a/ino/intval2_buttons.ino +++ b/ino/intval2_buttons.ino @@ -44,7 +44,6 @@ volatile int micro_position = 0; volatile boolean micro_primed = false; unsigned long timer = 0; -volatile int timer_int = 0; volatile int cam_count = 0; volatile int cam_pos = 0; @@ -76,7 +75,6 @@ void Pins_init () { } void Frame (boolean dir) { - Time_start(); cam_dir = dir; if (cam_dir) { analogWrite(PIN_MOTOR_FORWARD, fwd_speed); @@ -110,8 +108,6 @@ void Stop () { delay(10); analogWrite(PIN_MOTOR_FORWARD, 0); analogWrite(PIN_MOTOR_BACKWARD, 0); - - Time_end(); cam_count++; if (cam_dir) { @@ -129,15 +125,6 @@ void Stop () { } } -void Time_start () { - timer = millis(); -} - -void Time_end () { - timer = millis() - timer; - timer_int = int(timer); -} - void Indicator (boolean state) { if (state) { digitalWrite(PIN_INDICATOR, HIGH);