Merge pull request #426 from 446564/feat-GH109

allows manual BLE pin even when device has display
Этот коммит содержится в:
ripplebiz
2025-07-01 15:09:43 +10:00
коммит произвёл GitHub
родитель 387e2c7e74 f4463154cf
Коммит f8d277de83
4 изменённых файлов: 5 добавлений и 5 удалений
+2 -2
Просмотреть файл
@@ -613,10 +613,10 @@ void MyMesh::begin(bool has_display) {
_prefs.cr = constrain(_prefs.cr, 5, 8);
_prefs.tx_power_dbm = constrain(_prefs.tx_power_dbm, 1, MAX_LORA_TX_POWER);
#ifdef BLE_PIN_CODE
#ifdef BLE_PIN_CODE // 123456 by default
if (_prefs.ble_pin == 0) {
#ifdef DISPLAY_CLASS
if (has_display) {
if (has_display && BLE_PIN_CODE == 123456) {
StdRNG rng;
_active_ble_pin = rng.nextInt(100000, 999999); // random pin each session
} else {