Remove line ending
Merge branch 'dev' of github.com:WellDone/MoMo-Firmware into dev
Merge branch 'dev' of github.com:WellDone/MoMo-Firmware into dev
Merge branch 'dev' of github.com:WellDone/MoMo-Firmware into dev
Add interrupt protection to flash memory routines

Flash routines should not be interrupted during the time
that they are writing to the flash RAM.  This could cause
timing issues if a command is only partially sent and then
interrupted.
Update critical section to not include chip warmup wait time

This avoids the ~30 ms delays when waiting for the flash chip
to stabilize for writing.  The read stabilization calls are
still inclued in the critical section since they are at most 1ms.
Fix code path that would disable interrupts for 16000 cycles

No indication that this was actively causing a bug but it could cause
issues.
Fix issue with readding scheduled tasks to the task_loop

If a scheduled task has not run since the last time it was
added to the taskloop, do not re-add it again.  Instead,
log an error.  This should prevent the taskloop filling up with
the same task over and over again in case the taskloop locks waiting
on an RPC call and the scheduler keeps happily adding the same
periodically scheduled tasks in over and over again until the
task loop fills and dies.
Make the taskloop reset the PIC when it runs out of space for tasks.

This is really the only sensible option.  Nothing is guaranteed to
work withour being able to runs tasks.  This should also make the
PIC more robust against issues of the taskloop filling up.
Merge pull request #99 from timburke/pr-fix-memory

PIC24 Robustness Updates