Index: ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(revision 4615)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(working copy)
@@ -2953,6 +2953,9 @@
 ifdef SECURE_CONNECTION
 	call sp_initialize_256
 endif
+	fetch 1,mem_le_state
+	set0 state_inconn
+	store 1,mem_le_state
 	jam BT_EVT_LE_DISCONNECTED,mem_fifo_temp
 	branch ui_ipc_send_event	
 
Index: ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat	(revision 4615)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat	(working copy)
@@ -163,7 +163,7 @@
 # mem_tws_rf_packet_rx_window_size - (mem_tws_rf_rcv_window_size + 72us + hardware_delay(18us) + mem_tws_rf_slave_send_full_packet_sleep_time/2)
 mem_tws_rf_master_check_raw_id_time:db 04
 
-mem_rf_debug_enable: 00
+mem_rf_debug_enable: 01
 mem_rf_debug_rf_rx_debug_gpio: 0c
 mem_rf_debug_rf_tx_debug_gpio: 0e
 mem_rf_debug_rf_sync_detect_debug_gpio: 13
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom	(revision 4615)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom	(working copy)
@@ -77,9 +77,9 @@
 c02081e6
 c02206c7
 c02a06c3
-c02c062d
-c02e0649
-c02e864f
+c02c062a
+c02e0646
+c02e864c
 c03506c9
 c03586cb
 c03601dd
@@ -100,17 +100,17 @@
 c0098558
 c00a0537
 c011854b
-c0128651
-c0130655
-c0138657
-c0140659
-c014865a
-c015065f
+c012864e
+c0130652
+c0138654
+c0140656
+c0148657
+c015065c
 c01d83b1
 c01f03ba
 c01f8363
 c02084c0
-c0210695
+c0210692
 c0240467
 c02584c4
 c0278443
@@ -120,11 +120,11 @@
 c02e86d5
 c03005f3
 c03205ef
-c0370675
+c0370672
 c03806d7
 c03886d9
 c03a014d
-c0490660
+c049065d
 c0528602
 c0530602
 c1590000
@@ -1560,10 +1560,7 @@
 1a208c01
 efe20006
 c4008000
-6fe24ff0
-1fe0fe01
-67e24ff0
-20400620
+2040061d
 704c9f01
 20600000
 704c8806
@@ -1581,11 +1578,11 @@
 2020268a
 1f227e00
 67e4012c
-203a0626
+203a0623
 9ea67c00
 20212729
 18017e01
-243a0638
+243a0635
 6fe20151
 1fe17e03
 c001a649
@@ -1630,7 +1627,7 @@
 da204d34
 20200548
 20202baf
-2040065d
+2040065a
 207a0000
 6fe2004b
 c3830000
@@ -1643,7 +1640,7 @@
 18c27e00
 67e4013c
 6fe4442c
-203a066f
+203a066c
 20205b2e
 6fe40099
 203a2baf
@@ -1654,7 +1651,7 @@
 70429300
 20204b77
 67e40fb7
-20200679
+20200676
 68440fb7
 18518400
 6fe44881
@@ -1687,9 +1684,12 @@
 204045a4
 20403212
 2040682b
+6fe20623
+793ffe00
+67e20623
 700f0d15
 20206b2e
-20400696
+20400693
 7854fc00
 20600000
 6fe24040
@@ -1710,7 +1710,7 @@
 c05506bb
 6fe24131
 207a0000
-2040065d
+2040065a
 247a0000
 da204d5c
 20400548
@@ -1734,102 +1734,102 @@
 c0032739
 202025df
 580002e0
-20200677
+20200674
 580002a0
-20200677
+20200674
 580002b0
-20200677
+20200674
 58000240
-20200677
+20200674
 58000250
-20200677
+20200674
 580000f0
-20200677
+20200674
 58000320
-20200677
+20200674
 580002f0
-20200677
+20200674
 58000200
-20200677
+20200674
 580001c0
-20200677
+20200674
 58000230
-20200677
+20200674
 58000300
-20200677
+20200674
 58000190
-20200677
+20200674
 58000290
-20200677
+20200674
 58000120
-20200677
+20200674
 58000170
-20200677
+20200674
 580002c0
-20200677
+20200674
 580002d0
-20200677
+20200674
 580001e0
-20200677
+20200674
 58000140
-20200677
+20200674
 580001b0
-20200677
+20200674
 580001a0
-20200677
+20200674
 580001f0
-20200677
+20200674
 58000260
-20200677
+20200674
 58000270
-20200677
+20200674
 58000280
-20200677
+20200674
 58000080
-20200677
+20200674
 58000070
-20200677
+20200674
 580000d0
-20200677
+20200674
 58000060
-20200677
+20200674
 580000c0
-20200677
+20200674
 58000090
-20200677
+20200674
 580000a0
-20200677
+20200674
 580000b0
-20200677
+20200674
 580000e0
-20200677
+20200674
 58000160
-20200677
+20200674
 58000100
-20200677
+20200674
 58000010
-20200677
+20200674
 58000020
-20200677
+20200674
 58000030
-20200677
+20200674
 58000040
-20200677
+20200674
 58000050
-20200677
+20200674
 58000110
-20200677
+20200674
 58000210
-20200677
+20200674
 58000220
-20200677
+20200674
 580001d0
-20200677
+20200674
 58000150
-20200677
+20200674
 58000180
-20200677
+20200674
 58000310
-20200677
+20200674
 58000330
-20200677
+20200674
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom	(revision 4615)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom	(working copy)
@@ -230,7 +230,7 @@
 # mem_tws_rf_packet_rx_window_size - (mem_tws_rf_rcv_window_size + 72us + hardware_delay(18us) + mem_tws_rf_slave_send_full_packet_sleep_time/2)
 mem_tws_rf_master_check_raw_id_time:db 04
 
-mem_rf_debug_enable: 00
+mem_rf_debug_enable: 01
 mem_rf_debug_rf_rx_debug_gpio: 0c
 mem_rf_debug_rf_tx_debug_gpio: 0e
 mem_rf_debug_rf_sync_detect_debug_gpio: 13
@@ -255,7 +255,7 @@
 
 # debug log define
 #mem_param_debug_log_mem_block_start_addr
-mem_param_debug_log_func_enable:01
+mem_param_debug_log_func_enable:00
 
 mem_param_debug_log_initial_flag_addr:10 db 01
 mem_param_debug_log_lock_flag_cm0_addr:11 db 01
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom	(revision 4615)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom	(working copy)
@@ -1488,7 +1488,7 @@
 2020000a
 20404c78
 20400019
-20200620
+2020061d
 20400019
 20404c78
 20404c7c
