From 710dbabd4e51019dde5618d027e8888c175ae3c5 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 18 Aug 2022 15:00:29 -0500 Subject: [PATCH] Stub for platforms without screens --- src/graphics/Screen.h | 1 + src/nimble/NimbleBluetooth.cpp | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/graphics/Screen.h b/src/graphics/Screen.h index bdd7107d1..18e2285e0 100644 --- a/src/graphics/Screen.h +++ b/src/graphics/Screen.h @@ -20,6 +20,7 @@ class Screen void forceDisplay() {} void startBluetoothPinScreen(uint32_t pin) {} void stopBluetoothPinScreen() {} + void startRebootScreen() {} }; } diff --git a/src/nimble/NimbleBluetooth.cpp b/src/nimble/NimbleBluetooth.cpp index 4ef21c45e..897463e6f 100644 --- a/src/nimble/NimbleBluetooth.cpp +++ b/src/nimble/NimbleBluetooth.cpp @@ -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); }