changeset 992:39f28cd9dc46 BootloaderOstc5 tip

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.
author Ideenmodellierer
date Tue, 15 Apr 2025 21:49:42 +0200 (7 days ago)
parents 39b25be11009
children
files BootLoader/Src/base_bootlader.c BootLoader/Src/tComm_mini.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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 */