Minor logic fix to nested loop counters.
Modify updateRender call to use desiredFps rate when spiralling is detected.
Merge pull request #1315 from pjbaron/dev

Minor logic fix and updateRender change