diff --git a/src/bluetooth/HostedBluetooth.cpp b/src/bluetooth/HostedBluetooth.cpp index 4bd429609..8a6a64476 100644 --- a/src/bluetooth/HostedBluetooth.cpp +++ b/src/bluetooth/HostedBluetooth.cpp @@ -744,80 +744,4 @@ void HostedBluetooth::startAdvertising() } } -#else - -HostedBluetooth::HostedBluetooth() {} - -HostedBluetooth::~HostedBluetooth() -{ - deinit(); -} - -bool HostedBluetooth::registerCallbacks() -{ - return false; -} - -void HostedBluetooth::unregisterCallbacks() {} - -void HostedBluetooth::setup() -{ - active = false; - connected.store(false); - rssi.store(0); - firstRssiLogged.store(false); -} - -void HostedBluetooth::shutdown() -{ - deinit(); -} - -void HostedBluetooth::deinit() -{ - connected.store(false); - active = false; - rssi.store(0); - firstRssiLogged.store(false); -} - -void HostedBluetooth::clearBonds() {} - -bool HostedBluetooth::isActive() -{ - return active; -} - -bool HostedBluetooth::isConnected() -{ - return connected.load(); -} - -int HostedBluetooth::getRssi() -{ - return rssi.load(); -} - -void HostedBluetooth::sendLog(const uint8_t *logMessage, size_t length) -{ - (void)logMessage; - (void)length; -} - -void HostedBluetooth::setConnected(bool value) -{ - connected.store(value); -} - -void HostedBluetooth::setRssi(int value) -{ - rssi.store(value); - maybeLogFirstRssi(value); -} - -void HostedBluetooth::maybeLogFirstRssi(int value) -{ - (void)value; -} - #endif