Fail fast when we couldn't open an ANT stick

This commit is contained in:
Stefan Schake
2017-09-26 02:02:45 +02:00
parent fb14081f0f
commit a2292fdae3

View File

@@ -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
{