Removed extra scaling code

master
Mark 2022-07-08 10:45:08 -07:00
parent 1225d414e3
commit fe00a30268
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ const size_t bottom_skip = 25;
const size_t top_skip = 50; const size_t top_skip = 50;
const size_t width = 12; const size_t width = 10;
const size_t height = bottom_skip + kb_resolution + top_skip; const size_t height = bottom_skip + kb_resolution + top_skip;
@ -94,7 +94,7 @@ int main(int argc, char *argv[]) {
hid_buf[0] = CMD_ANIM_DATA_fft; hid_buf[0] = CMD_ANIM_DATA_fft;
for (size_t i = 0; i < 10; i++) { for (size_t i = 0; i < 10; i++) {
// Get height from fft, apply bottom_skip // Get height from fft, apply bottom_skip
ssize_t h = fft.get_output()[i + 1] - bottom_skip; ssize_t h = fft.get_output()[i] - bottom_skip;
// Enforce max and min // Enforce max and min
// max implicitly enforces top_skip // max implicitly enforces top_skip