Fixed bugs: 1. Manual pulse mode would end immediately 2. Stopping Manual pulse mode would result in errors with data logging