Project

General

Profile

Revision 150

Fixed several bugs:
warn state no longer allows red button to kill tool while it is spinning
keypresses are flushed by the server before a request so we don't get the one-swipe-behind bug

Changes:
red light stays on on toolboxes while powered
added more blink-error codes to the cardbox

View differences:

main.c
195 195
            PORTC &= ~LED_RED;
196 196
            break;
197 197
          
198
          case TT_GET_KEY:
198
	  case TT_GET_KEY: //this means the states are messed up
199 199
            PORTC &= (~LED_RED & ~LED_YELLOW & ~LED_GREEN);
200 200
            break;
201 201

  
202
          default:
202
	  case 0: //timeout
203
	    PORTC &= (~LED_RED & ~LED_YELLOW);
204
	    break;	    
205

  
206
	default: //bad packet
203 207
            PORTC &= (~LED_RED & ~LED_GREEN);
204 208
            break;
205 209
        }

Also available in: Unified diff