Index: dflash_download.bat
===================================================================
--- /branch/mouse_project/YDN_Project/YDN_1066_139D_NEW/dflash_download.bat	(revision 3116)
+++ /branch/mouse_project/YDN_Project/YDN_1066_139D_NEW/dflash_download.bat	(nonexistent)
@@ -1,12 +0,0 @@
-call do.bat eep
-e ku
-ping -n 2 127.1 >nul
-e pu
-
-e 8081 8
-
-e fc
-e fp
-e fr 0 10
-e ku
-e au
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YDN_Project/YDN_1066_139D_NEW/program/patch.prog	(revision 3159)
+++ /branch/mouse_project/YDN_Project/YDN_1066_139D_NEW/program/patch.prog	(working copy)
@@ -143,11 +143,13 @@
 	branch loop
 pf_patch_ext:
 ifdef BLE
+/*
 	beq patch27_1,p_le_slave_match
 	beq patch28_3,p_le_next_adv_channel
 	beq patch29_2,p_le_receive_skip
 	beq patch2a_7,p_le_update_param
 	beq patch2b_1,p_le_update_channel_map
+*/	
 	beq patch2c_3,p_le_prepare_tx
 	beq patch2c_6,p_le_parse
 	beq patch2c_7,p_le_parse_l2cap
@@ -2280,7 +2282,7 @@
 	disable user
 	setarg 0
 	store 6,mem_mouse_x
-	call mouse_cheak_sensor_data
+	call p_mouse_cheak_sensor_data
 	call mouse_zwheel
 	call mouse_t_zwheel
 	call p_mouse_key
@@ -2292,6 +2294,21 @@
 endif
 	branch mouse_motion+9
 
+p_mouse_cheak_sensor_data:
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	call mouse_clear_sensor_data
+	fetch 1,mem_config_sensor_type
+	beq P3205,mouse_p32xx_sensor_motion+5
+	beq P3065,mouse_p32xx_sensor_motion+5
+	beq KA8,mouse_p32xx_sensor_motion+5
+	beq P3204,mouse_p32xx_sensor_motion+5
+	beq P3212,mouse_p3212_sensor_motion+4
+	beq P3610,mouse_p3610_sensor_motion+4
+	beq P3065_xy,mouse_p32xx_sensor_motion+5
+	branch mouse_p32xx_sensor_motion+5
+
+
 p_mouse_motion_nodata:	
 ifdef MOUSE_SMOOTHER
 	call p_drawing_optima_init
@@ -2430,6 +2447,7 @@
 
 
 ifdef BLE
+/*
 p_le_slave_match:
 	fetch 1,mem_le_md_count
 	pincrease 1
@@ -2460,7 +2478,7 @@
 p_le_update_channel_map:
 	jam ZCODE_41,mem_zcode_temp_param0
 	branch p_zcode_entrance
-
+*/
 p_le_prepare_tx:
 	fetch 1,mem_le_arq
 	bbit1 wak,p_le_prepare_tx_wak
