summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2017-05-10 16:54:00 +0100
committerVasil Zlatanov <v@skozl.com>2017-05-10 16:54:00 +0100
commiteca52b2d96bc1d80b49f38dcbfc5d5914f7aaaaf (patch)
tree1e7e1dbf84eeb1e10ea26640569c18cd7a7eee94
parent5d2c5d37ca292a5bfe962a4bccc64f1108b18076 (diff)
downloade2-switch-eca52b2d96bc1d80b49f38dcbfc5d5914f7aaaaf.tar.gz
e2-switch-eca52b2d96bc1d80b49f38dcbfc5d5914f7aaaaf.tar.bz2
e2-switch-eca52b2d96bc1d80b49f38dcbfc5d5914f7aaaaf.zip
Declared rads as double
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3f5ae40..7a77025 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,6 +31,7 @@ volatile uint16_t amp = 0;
const double pi = 3.141592653589793238462;
const double offset = 65535 / 2; // Offset is 1/2 the total bits
+double rads = 0.0;
uint16_t sample = 0;
uint16_t sineArray[ARRAY_SIZE];