# HG changeset patch # User Ideenmodellierer # Date 1744746582 -7200 # Node ID 39f28cd9dc46ae9dc0f515e35dc3131e430d6de8 # Parent 39b25be11009f078d2c9b2282334518a0c03dace Bootloader BT module initialization: The previous version did the first initialization of the module based on the fact if a serial number is present or not. Meanwhile the serial number may be preset in the binary => use the name program flag as indicator if the module shall be initialized or not. diff -r 39b25be11009 -r 39f28cd9dc46 BootLoader/Src/base_bootlader.c --- a/BootLoader/Src/base_bootlader.c Tue Apr 15 17:36:19 2025 +0200 +++ b/BootLoader/Src/base_bootlader.c Tue Apr 15 21:49:42 2025 +0200 @@ -693,7 +693,11 @@ tInfo_write("start bluetooth"); tInfo_write(""); tInfo_write(textVersion); +#if 0 if(tComm_Set_Bluetooth_Name(0) == 0xFF) +#else + if(hardwareDataGetPointer()->production_bluetooth_name_set == 0xFF) +#endif { tInfo_write("init bluetooth"); tComm_StartBlueModBaseInit(); diff -r 39b25be11009 -r 39f28cd9dc46 BootLoader/Src/tComm_mini.c --- a/BootLoader/Src/tComm_mini.c Tue Apr 15 17:36:19 2025 +0200 +++ b/BootLoader/Src/tComm_mini.c Tue Apr 15 21:49:42 2025 +0200 @@ -1785,6 +1785,7 @@ if(hardwareDataGetPointer()->primarySerial != 0xFFFF) /* module reinit? => restore old name */ { gfx_number_to_string(5,1,&TxBuffer[15],hardwareDataGetPointer()->primarySerial); + hardware_programmPrimaryBluetoothNameSet(); } break; case BM_INIT_SSP_IDO_OFF: sprintf(TxBuffer,"AT+UDSC=0,0\r"); /* Disable SPP Server on ID0 */