File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -613,10 +613,10 @@ void MyMesh::begin(bool has_display) {
613613 _prefs.cr = constrain (_prefs.cr , 5 , 8 );
614614 _prefs.tx_power_dbm = constrain (_prefs.tx_power_dbm , 1 , MAX_LORA_TX_POWER);
615615
616- #ifdef BLE_PIN_CODE
616+ #ifdef BLE_PIN_CODE // 123456 by default
617617 if (_prefs.ble_pin == 0 ) {
618618#ifdef DISPLAY_CLASS
619- if (has_display) {
619+ if (has_display && BLE_PIN_CODE == 123456 ) {
620620 StdRNG rng;
621621 _active_ble_pin = rng.nextInt (100000 , 999999 ); // random pin each session
622622 } else {
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ build_flags =
9696 -D DISPLAY_CLASS =SSD1306Display
9797 -D MAX_CONTACTS =100
9898 -D MAX_GROUP_CHANNELS =8
99- -D BLE_PIN_CODE =0
99+ -D BLE_PIN_CODE =123456
100100 -D BLE_DEBUG_LOGGING =1
101101 -D OFFLINE_QUEUE_SIZE =256
102102; -D MESH_PACKET_LOGGING=1
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ build_flags =
107107 -D MAX_CONTACTS =100
108108 -D MAX_GROUP_CHANNELS =8
109109 -D DISPLAY_CLASS =SSD1306Display
110- -D BLE_PIN_CODE =0 ; dynamic, random PIN
110+ -D BLE_PIN_CODE =123456 ; dynamic, random PIN
111111 -D BLE_DEBUG_LOGGING =1
112112 -D OFFLINE_QUEUE_SIZE =256
113113; -D MESH_PACKET_LOGGING=1
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ build_flags =
3636 -I src/helpers/ui
3737 -D MAX_CONTACTS =100
3838 -D MAX_GROUP_CHANNELS =8
39- -D BLE_PIN_CODE =0
39+ -D BLE_PIN_CODE =123456
4040 -D BLE_DEBUG_LOGGING =1
4141 -D OFFLINE_QUEUE_SIZE =256
4242 -D DISPLAY_CLASS =SH1106Display
You can’t perform that action at this time.
0 commit comments