Removed extra scaling code
parent
1225d414e3
commit
fe00a30268
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue