From eca52b2d96bc1d80b49f38dcbfc5d5914f7aaaaf Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 10 May 2017 16:54:00 +0100 Subject: Declared rads as double --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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]; -- cgit v1.2.3-54-g00ecf