mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Merge pull request #731 from dresco/ANT
Don't reset ANT channel settings on search timeout
This commit is contained in:
@@ -174,11 +174,13 @@ void ANTChannel::channelEvent(unsigned char *ant_message) {
|
||||
|
||||
emit lostInfo(number);
|
||||
|
||||
channel_type=CHANNEL_TYPE_UNUSED;
|
||||
channel_type_flags=0;
|
||||
device_number=0;
|
||||
value2=value=0;
|
||||
setId();
|
||||
// Don't wipe out the channel settings when the search times out,
|
||||
// else can not reconnect to the device once back in range..
|
||||
//channel_type=CHANNEL_TYPE_UNUSED;
|
||||
//channel_type_flags=0;
|
||||
//device_number=0;
|
||||
//value2=value=0;
|
||||
//setId();
|
||||
|
||||
parent->sendMessage(ANTMessage::unassignChannel(number));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user