Skip to content

Commit

Permalink
bar graph display to normalize for 32 bit instead of 24 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlee188 committed Oct 10, 2012
1 parent 95cc451 commit dfc5708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taskPowerDisplay.c
Expand Up @@ -59,7 +59,8 @@ char lcd_bar2[21];

// normalize an audio sample
static int normalize_sample(unsigned sample) {
return abs((((int)sample) << 8) >> 8);
//return abs((((int)sample) << 8) >> 8);
return abs((int)sample);
}

//
Expand Down

0 comments on commit dfc5708

Please sign in to comment.