From 043ee0ecf190d98a9373348b7f08104a6c6ee00c Mon Sep 17 00:00:00 2001
From: "Michael D. M. Dryden" <mdryden@chem.utoronto.ca>
Date: Sat, 27 Jun 2015 21:31:37 -0600
Subject: [PATCH] Fix typos and add math.h

---
 main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index b8c114c..3c033d1 100644
--- a/main.c
+++ b/main.c
@@ -7,6 +7,7 @@
 
 #include "asf.h"
 #include <stdio.h>
+#include <math.h>
 #include <avr/io.h>
 #include <avr/interrupt.h>
 
@@ -16,7 +17,7 @@ uint16_t step_counter = 0;
 
 //Internal function declarations
 void single_step(void);
-void multi_step(bool dir, uint16_t steps, uint16_t steps_per_s)
+void multi_step(bool dir, uint16_t steps, uint16_t steps_per_s);
 
 void single_step(void){
     static bool last_dir = 1;
@@ -53,7 +54,7 @@ void multi_step(bool dir, uint16_t steps, uint16_t us_per_step){
     
     // stop timer
     
-    TIMSK1 &= ~(1 << OCIEA1);
+    TIMSK1 &= ~(1 << OCIE1A);
     TCCR1B &= ~(0b00000111);
 }
 
-- 
GitLab