Minor additions to dsPIC33F/PIC24H programmer:
[goodfet] / firmware / goodfet.c
index a61f79b..f82c5b3 100644 (file)
@@ -75,6 +75,11 @@ void handle(unsigned char app,
   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;
@@ -158,7 +163,7 @@ int main(void)
       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.");