From 8faf582d08046be4db5d81f5890664e7e8390c00 Mon Sep 17 00:00:00 2001 From: Manuel <71137295+mverch67@users.noreply.github.com> Date: Sat, 24 May 2025 08:23:47 +0200 Subject: [PATCH] fix bluetooth fixedPin during restart --- source/graphics/TFT/TFTView_320x240.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/graphics/TFT/TFTView_320x240.cpp b/source/graphics/TFT/TFTView_320x240.cpp index 7ca2dacd..d9e8d775 100644 --- a/source/graphics/TFT/TFTView_320x240.cpp +++ b/source/graphics/TFT/TFTView_320x240.cpp @@ -1955,6 +1955,8 @@ void TFTView_320x240::ui_event_device_progmode_button(lv_event_t *e) THIS->controller->sendConfig(meshtastic_Config_NetworkConfig{network}); } meshtastic_Config_BluetoothConfig &bluetooth = THIS->db.config.bluetooth; + bluetooth.mode = meshtastic_Config_BluetoothConfig_PairingMode_FIXED_PIN; + bluetooth.fixed_pin = random(100000, 999999); bluetooth.enabled = true; THIS->controller->sendConfig(meshtastic_Config_BluetoothConfig{bluetooth}, THIS->ownNode); lv_screen_load_anim(objects.blank_screen, LV_SCR_LOAD_ANIM_FADE_OUT, 4000, 1000, false);