diff -r ff76255904c4 -r 4b186b5ce145 carrerashark/main.c --- a/carrerashark/main.c Mon Dec 05 17:14:32 2011 +0100 +++ b/carrerashark/main.c Tue Dec 06 11:04:33 2011 +0100 @@ -191,7 +191,7 @@ PORTD |= _BV(PD7); RS232_init(); // initialize RS232 interface - RS232_puts_p(PSTR("CarreraShark 1.2\nA = Show all data live\nC = Show only when data changes")); + RS232_puts_p(PSTR("CarreraShark 1.2\nA = Show all data live\nC = Show only when prog high changes")); sei(); i = 0; @@ -204,7 +204,7 @@ response = 0; RS232_puts( s ); RS232_putc('\n'); - while (1) ; + //while (1) ; } if (data != 0) { @@ -216,7 +216,7 @@ if (showall == 0) { // compare old & new cycle cycle_changed = 0; - for (i=0; i<10;i++ ) if (cycle[i] != cycle_old[i]) cycle_changed = 1; + for (i=0; i<10;i++ ) if ( (cycle[i] & 0xff00) != (cycle_old[i] & 0xff00) ) cycle_changed = 1; } if ( (showall != 0) || (cycle_changed != 0) ) { for (i=0; i<10;i++ ) {