Open nbonniere opened 8 years ago
Max ADC value 255 - 127 is 128 unsigned, which is actually -128 in a signed int_8.
// sliding_dft(raw_buffer[i] - 127, raw_buffer[i + 1] - 127); sliding_dft(raw_buffer[i] ^ 0x80, raw_buffer[i + 1] ^ 0x80);
Max ADC value 255 - 127 is 128 unsigned, which is actually -128 in a signed int_8.
// sliding_dft(raw_buffer[i] - 127, raw_buffer[i + 1] - 127); sliding_dft(raw_buffer[i] ^ 0x80, raw_buffer[i + 1] ^ 0x80);