mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fail fast when we couldn't open an ANT stick
This commit is contained in:
@@ -487,6 +487,12 @@ ANT::start()
|
||||
int
|
||||
ANT::setup()
|
||||
{
|
||||
if (channels == 0)
|
||||
{
|
||||
// we obviously have not managed to open an ANT stick, fail fast
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint8_t attempts = 0;
|
||||
do
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user