mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user