Kickr connect should fail if no BTLE hardware

Returns immediately if trying to connect when there is no
BTLE hardware available.
This commit is contained in:
Mark Liversedge
2013-01-22 13:09:02 +00:00
parent ed40f0338b
commit 2228c2775f

View File

@@ -178,6 +178,9 @@ Kickr::find()
int
Kickr::connectKickr()
{
// do we even have BTLE hardware?
if (WFApi::getInstance()->isBTLEEnabled() == false) return (-1);
// discover first...
if (scanned == false) find();