From b59e9285892e2856d19f0b237f39f519325734f3 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 12 Oct 2022 10:31:39 -0500 Subject: [PATCH] Secure DFU mode for OTA updates with pin (#1789) --- src/platform/nrf52/NRF52Bluetooth.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/nrf52/NRF52Bluetooth.cpp b/src/platform/nrf52/NRF52Bluetooth.cpp index 0347c2b02..acb26071f 100644 --- a/src/platform/nrf52/NRF52Bluetooth.cpp +++ b/src/platform/nrf52/NRF52Bluetooth.cpp @@ -244,6 +244,7 @@ void NRF52Bluetooth::setup() Bluefruit.Periph.setConnectCallback(onConnect); Bluefruit.Periph.setDisconnectCallback(onDisconnect); + bledfu.setPermission(SECMODE_ENC_WITH_MITM, SECMODE_ENC_WITH_MITM); bledfu.begin(); // Install the DFU helper // Configure and Start the Device Information Service