case AVR:
avrhandle(app,verb,len);
break;
+#ifdef INSTALL_PIC_APP
+ case PIC:
+ pichandle(app,verb,len);
+ break;
+#endif
case I2CAPP:
i2chandle(app,verb,len);
break;
app=serial_rx();
// If the app is the reset byte (0x80) increment and loop
- if (app == 0x80) {
+ if (app == RESET) {
reset_count++;
if (reset_count > 4) {
handle(app,verb,len);
}else{
//Listen to the blaberring.
- for(i-0;i<len;i++)
+ for(i=0;i<len;i++)
serial_rx();
//Reply with an error.
debugstr("Buffer length exceeded.");