Fixed PIC24 code to compile.  Pending tests.