GoldenCheetah/GoldenCheetah — pull request #731 by dresco (2013-12-03 00:07:25+00:00)
Title: Don't reset ANT channel settings on search timeout

Wiping out these settings prevents a successful reconnection
of the device if it comes back into range

Fixes #514

-----

This fixes the issue of walking away from a training view session, and subsequently losing HR data for the remainder of the session - even when back in range. This can be easily reproduced by taking the HR strap into another room for one minute.

Because the ANT channel type is reset, when the code next passes through the state machine in ANTChannel::attemptTransition(), it assigns the channel to network 0 (the default public network) instead of network 1 (the ANT sport network).

Maybe someone more familiar with the ANT code should cast an eye over this, but I haven't seen any unwanted side effects? The channel type is still unset in ANT::removeDevice() when the training session is ended.