cleanup
This commit is contained in:
parent
6cd04b244a
commit
fadf444a08
|
@ -134,14 +134,6 @@ static void print_bar(uint8_t display, uint16_t value, uint16_t max) {
|
|||
static void print_bar_bottom(uint16_t in, uint16_t out, uint16_t max) {
|
||||
uint16_t x;
|
||||
float temp = max;
|
||||
/*
|
||||
uart_puts("in= ");
|
||||
uart_print_uint16(in);
|
||||
uart_puts(" out= ");
|
||||
uart_print_uint16(out);
|
||||
uart_puts(" max= ");
|
||||
uart_print_uint16(max);*/
|
||||
|
||||
|
||||
if(out == in) {
|
||||
leddigitbuffer[0] = bigbar_translate[7][0];
|
||||
|
@ -159,11 +151,6 @@ static void print_bar_bottom(uint16_t in, uint16_t out, uint16_t max) {
|
|||
if(x > 14) x = 14;
|
||||
if(x < 0) x = 0;
|
||||
|
||||
/* uart_puts_P(" x= ");
|
||||
uart_print_uint16(x);
|
||||
uart_puts_P("\r\n");
|
||||
*/
|
||||
|
||||
leddigitbuffer[0] = bigbar_translate[x][0];
|
||||
leddigitbuffer[1] = bigbar_translate[x][1];
|
||||
|
||||
|
@ -286,7 +273,7 @@ int main(void) {
|
|||
memset(data_in, 0, BUFSIZE);
|
||||
|
||||
|
||||
//demo_display();
|
||||
demo_display();
|
||||
|
||||
while(1) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue