From f368da416a278b5e25f9be3a5daf2bb5564ba781 Mon Sep 17 00:00:00 2001 From: hazcoper Date: Sun, 1 Nov 2020 23:33:42 +0000 Subject: [PATCH] Fix bug(?) if dft.c --- colorchord2/dft.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/colorchord2/dft.c b/colorchord2/dft.c index a28a758..90c3511 100644 --- a/colorchord2/dft.c +++ b/colorchord2/dft.c @@ -420,9 +420,12 @@ uint16_t Sdatspace[FIXBINS*4]; //(advances,places,isses,icses) static uint8_t Sdo_this_octave[BINCYCLE]; static int16_t Saccum_octavebins[OCTAVES]; static uint8_t Swhichoctaveplace; -#ifndef INCLUDING_EMBEDDED -uint16_t embeddedbins[FIXBINS]; //This is updated every time the DFT hits the octavecount, or 1/32 updates. -#endif + +//multiple definition of `embeddedbins'; dft.o (symbol from plugin):(.text+0x0): first defined here +//Had this issue when trying to build, commenting this lines out made the build successful +//#ifndef INCLUDING_EMBEDDED +//uint16_t embeddedbins[FIXBINS]; //This is updated every time the DFT hits the octavecount, or 1/32 updates. +//#endif //From: http://stackoverflow.com/questions/1100090/looking-for-an-efficient-integer-square-root-algorithm-for-arm-thumb2 /**