mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-04 21:03:07 +00:00
Stub for platforms without screens
This commit is contained in:
parent
fae59fa9c9
commit
710dbabd4e
@ -20,6 +20,7 @@ class Screen
|
||||
void forceDisplay() {}
|
||||
void startBluetoothPinScreen(uint32_t pin) {}
|
||||
void stopBluetoothPinScreen() {}
|
||||
void startRebootScreen() {}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -137,11 +137,7 @@ void NimbleBluetooth::setup()
|
||||
NimBLEDevice::setPower(ESP_PWR_LVL_P9);
|
||||
|
||||
// FIXME fails in iOS
|
||||
if (config.bluetooth.mode == Config_BluetoothConfig_PairingMode_NoPin) {
|
||||
NimBLEDevice::setSecurityIOCap(BLE_HS_IO_NO_INPUT_OUTPUT);
|
||||
NimBLEDevice::setSecurityAuth(true, false, true);
|
||||
}
|
||||
else {
|
||||
if (config.bluetooth.mode != Config_BluetoothConfig_PairingMode_NoPin) {
|
||||
NimBLEDevice::setSecurityAuth(true, true, true);
|
||||
NimBLEDevice::setSecurityIOCap(BLE_HS_IO_DISPLAY_ONLY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user