Index: 24G&BLE/output/bt_program23.icode
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.icode	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.icode	(working copy)
@@ -249,12 +249,12 @@
  00000248  0x00000173 fetcht  0x00000001 , 0x00004703 
  00000249  0x00000174 isub  0x00000002 , 0x0000003e 
  00000250  0x00000175 branch  0x00000100 , 0x00000005 
- 00000251  0x00000176 call  0x00000310 
+ 00000251  0x00000176 call  0x00000311 
  00000252  0x00000177 fetch  0x00000001 , 0x00004210 
  00000253  0x00000178 beq  0x00000033 , 0x00000102 
  00000254  0x00000179 beq  0x00000034 , 0x00000105 
  00000255  0x0000017a rtn 
- 00000256  0x0000017d call  0x00000310 
+ 00000256  0x0000017d call  0x00000311 
  00000257  0x0000017e branch  0x00000193 
  00000258  0x00000181 fetch  0x00000006 , 0x000041d0 
  00000259  0x00000182 branch  0x000033eb , 0x00000034 
@@ -504,7 +504,7 @@
  00000503  0x000002ed store  0x00000001 , 0x0000477a 
  00000504  0x000002ee increase  0x00000002 , 0x0000003f 
  00000505  0x000002ef store  0x00000002 , 0x00004b07 
- 00000506  0x000002f0 call  0x0000031e 
+ 00000506  0x000002f0 call  0x0000031f 
  00000507  0x000002f1 branch  0x00003d74 
  00000508  0x000002f4 jam  0x000000ff , 0x00004b09 
  00000509  0x000002f5 arg  0x00000001 , 0x00000002 
@@ -528,7 +528,7 @@
  00000527  0x0000030a beq  0x0000003a , 0x00000262 
  00000528  0x0000030b beq  0x0000003c , 0x00003f8d 
  00000529  0x0000030c branch  0x0000417d 
- 00000530  0x0000030f call  0x0000031b 
+ 00000530  0x0000030f call  0x0000031c 
  00000531  0x00000310 call  0x0000077f 
  00000532  0x00000311 branch  0x000041c3 
  00000533  0x00000314 setarg  0x00000007 
@@ -576,7 +576,7 @@
  00000575  0x00000350 store  0x00000001 , 0x00004808 
  00000576  0x00000351 jam  0x00000012 , 0x000041e3 
  00000577  0x00000352 branch  0x0000340e 
- 00000578  0x00000355 call  0x0000031b 
+ 00000578  0x00000355 call  0x0000031c 
  00000579  0x00000356 jam  0x00000000 , 0x00004809 
  00000580  0x00000357 branch  0x000042ca 
  00000581  0x0000035a fetch  0x00000001 , 0x00004808 
@@ -642,13 +642,13 @@
  00000641  0x000003a8 call  0x000002b2 
  00000642  0x000003a9 call  0x00000297 
  00000643  0x000003aa call  0x000002bb 
- 00000644  0x000003ab call  0x000002e0 
+ 00000644  0x000003ab call  0x000002e1 
  00000645  0x000003ac call  0x00004231 
  00000646  0x000003ad call  0x00004234 
- 00000647  0x000003ae call  0x000002db 
+ 00000647  0x000003ae call  0x000002de 
  00000648  0x000003af call  0x0000423a 
- 00000649  0x000003b0 call  0x00000334 
- 00000650  0x000003b1 call  0x00000322 
+ 00000649  0x000003b0 call  0x00000335 
+ 00000650  0x000003b1 call  0x00000323 
  00000651  0x000003b2 branch  0x00000294 
  00000652  0x000003b5 arg  0x00004809 , 0x00000013 
  00000653  0x000003b6 arg  0x0000637a , 0x00000012 
@@ -713,112 +713,112 @@
  00000712  0x00000407 jam  0x00000001 , 0x000046d9 
  00000713  0x00000408 arg  0x00000006 , 0x00000007 
  00000714  0x00000409 branch  0x000043d2 
- 00000715  0x0000040b call  0x000002d0 
- 00000716  0x0000040c fetch  0x00000001 , 0x000046d9 
- 00000717  0x0000040d rtneq  0x00000000 
- 00000718  0x0000040e jam  0x00000000 , 0x000046d9 
- 00000719  0x0000040f rtn 
- 00000720  0x00000411 arg  0x00004afe , 0x00000013 
- 00000721  0x00000412 arg  0x000002d3 , 0x00000012 
- 00000722  0x00000413 branch  0x0000336d 
- 00000723  0x00000415 fetch  0x00000004 , 0x000046d3 
- 00000724  0x00000416 rtnbit1  0x00000006 
- 00000725  0x00000417 jam  0x00000000 , 0x00004b09 
- 00000726  0x00000418 arg  0x00000001 , 0x00000002 
- 00000727  0x00000419 arg  0x00004b09 , 0x00000011 
- 00000728  0x0000041a arg  0x00000061 , 0x00000012 
- 00000729  0x0000041b call  0x00006606 
- 00000730  0x0000041c branch  0x00004370 
- 00000731  0x00000420 fetch  0x00000001 , 0x000046f5 
- 00000732  0x00000421 bbit0  0x00000005 , 0x00004237 
- 00000733  0x00000422 fetch  0x00000001 , 0x000046d9 
- 00000734  0x00000423 rtneq  0x00000000 
- 00000735  0x00000424 branch  0x00004237 
- 00000736  0x00000428 fetch  0x00000001 , 0x00004aff 
- 00000737  0x00000429 rtn  0x00000034 
- 00000738  0x0000042a fetch  0x00000001 , 0x00004b02 
- 00000739  0x0000042b beq  0x00000000 , 0x000002e6 
- 00000740  0x0000042c beq  0x00000001 , 0x000002ee 
- 00000741  0x0000042d rtn 
- 00000742  0x00000430 call  0x000002fe 
- 00000743  0x00000431 fetch  0x00000001 , 0x00004b03 
- 00000744  0x00000432 increase  0x00000001 , 0x0000003f 
- 00000745  0x00000433 store  0x00000001 , 0x00004b03 
- 00000746  0x00000434 fetcht  0x00000001 , 0x00004b04 
- 00000747  0x00000435 isub  0x00000002 , 0x0000003e 
- 00000748  0x00000436 call  0x00000309 , 0x00000005 
- 00000749  0x00000437 rtn 
- 00000750  0x0000043a fetch  0x00000001 , 0x00004b05 
- 00000751  0x0000043b increase  0xffffffff , 0x0000003f 
- 00000752  0x0000043c store  0x00000001 , 0x00004b05 
- 00000753  0x0000043d nrtn  0x00000034 
- 00000754  0x0000043e fetch  0x00000001 , 0x00004b06 
- 00000755  0x0000043f store  0x00000001 , 0x00004b05 
- 00000756  0x00000440 fetch  0x00000001 , 0x00004b08 
- 00000757  0x00000441 branch  0x000002fa , 0x00000034 
- 00000758  0x00000442 fetch  0x00000001 , 0x00004b07 
- 00000759  0x00000443 branch  0x00000306 , 0x00000034 
- 00000760  0x00000444 increase  0xffffffff , 0x0000003f 
- 00000761  0x00000445 store  0x00000001 , 0x00004b07 
- 00000762  0x00000447 fetch  0x00000001 , 0x00004b01 
- 00000763  0x00000448 beq  0x00000001 , 0x00000309 
- 00000764  0x00000449 beq  0x00000000 , 0x000002fe 
- 00000765  0x0000044a rtn 
- 00000766  0x0000044d jam  0x00000001 , 0x00004b01 
- 00000767  0x0000044e fetcht  0x00000001 , 0x00004b00 
- 00000768  0x0000044f call  0x0000680e 
- 00000769  0x00000450 fetch  0x00000001 , 0x00004b00 
- 00000770  0x00000451 store  0x00000001 , 0x00004715 
- 00000771  0x00000452 fetch  0x00000001 , 0x00004720 
- 00000772  0x00000453 beq  0x00000002 , 0x00004296 
- 00000773  0x00000454 branch  0x00004298 
- 00000774  0x00000457 jam  0x00000000 , 0x00004b05 
- 00000775  0x00000458 jam  0x00000000 , 0x00004b07 
- 00000776  0x00000459 jam  0x00000000 , 0x00004b08 
- 00000777  0x0000045b fetch  0x00000001 , 0x00004b07 
- 00000778  0x0000045c nbranch  0x0000030d , 0x00000034 
- 00000779  0x0000045d jam  0x00000000 , 0x00004aff 
- 00000780  0x0000045e jam  0x00000000 , 0x00004b02 
- 00000781  0x00000460 jam  0x00000000 , 0x00004b03 
- 00000782  0x00000461 jam  0x00000000 , 0x00004b01 
- 00000783  0x00000462 branch  0x00000178 
- 00000784  0x00000467 jam  0x00000001 , 0x00004aff 
- 00000785  0x00000468 jam  0x00000000 , 0x00004b02 
- 00000786  0x00000469 jam  0x00000000 , 0x00004b03 
- 00000787  0x0000046a rtn 
- 00000788  0x0000046d jam  0x00000001 , 0x00004b05 
- 00000789  0x0000046e jam  0x00000005 , 0x00004b06 
- 00000790  0x0000046f jam  0x00000000 , 0x00004b08 
- 00000791  0x00000470 jam  0x00000001 , 0x00004b07 
- 00000792  0x00000472 jam  0x00000001 , 0x00004aff 
- 00000793  0x00000473 jam  0x00000001 , 0x00004b02 
- 00000794  0x00000474 rtn 
- 00000795  0x00000477 fetch  0x00000001 , 0x00004b03 
- 00000796  0x00000478 nrtn  0x00000034 
- 00000797  0x00000479 branch  0x00000306 
- 00000798  0x0000047c jam  0x0000000a , 0x00004b05 
- 00000799  0x0000047d jam  0x00000005 , 0x00004b06 
- 00000800  0x0000047e jam  0x00000001 , 0x00004b08 
- 00000801  0x0000047f branch  0x00000318 
- 00000802  0x00000483 fetch  0x00000004 , 0x000046d3 
- 00000803  0x00000484 rtnbit0  0x00000004 
- 00000804  0x00000485 fetch  0x00000002 , 0x00004682 
- 00000805  0x00000486 rtnbit1  0x0000000b 
- 00000806  0x00000487 rtnbit1  0x00000006 
- 00000807  0x00000488 fetch  0x00000001 , 0x00004b07 
- 00000808  0x00000489 nrtn  0x00000034 
- 00000809  0x0000048a fetch  0x00000001 , 0x00004b03 
- 00000810  0x0000048b nrtn  0x00000034 
- 00000811  0x0000048c fetch  0x00000001 , 0x000046cf 
- 00000812  0x0000048d pincrease  0x00000001 
- 00000813  0x0000048e store  0x00000001 , 0x000046cf 
- 00000814  0x0000048f beq  0x00000003 , 0x00000309 
- 00000815  0x00000490 sub  0x0000003f , 0x00000014 , 0x0000003e 
- 00000816  0x00000491 nbranch  0x00000332 , 0x00000002 
- 00000817  0x00000492 rtn 
- 00000818  0x00000494 jam  0x00000001 , 0x000046cf 
- 00000819  0x00000495 branch  0x000002fe 
- 00000820  0x00000499 rtn 
+ 00000715  0x0000040b call  0x000002d3 
+ 00000716  0x0000040c jam  0x00000028 , 0x0000479e 
+ 00000717  0x0000040d fetch  0x00000002 , 0x000046a8 
+ 00000718  0x0000040e store  0x00000002 , 0x000046ae 
+ 00000719  0x0000040f fetch  0x00000001 , 0x000046d9 
+ 00000720  0x00000410 rtneq  0x00000000 
+ 00000721  0x00000411 jam  0x00000000 , 0x000046d9 
+ 00000722  0x00000412 rtn 
+ 00000723  0x00000414 arg  0x00004afe , 0x00000013 
+ 00000724  0x00000415 arg  0x000002d6 , 0x00000012 
+ 00000725  0x00000416 branch  0x0000336d 
+ 00000726  0x00000418 fetch  0x00000004 , 0x000046d3 
+ 00000727  0x00000419 rtnbit1  0x00000006 
+ 00000728  0x0000041a jam  0x00000000 , 0x00004b09 
+ 00000729  0x0000041b arg  0x00000001 , 0x00000002 
+ 00000730  0x0000041c arg  0x00004b09 , 0x00000011 
+ 00000731  0x0000041d arg  0x00000061 , 0x00000012 
+ 00000732  0x0000041e call  0x00006606 
+ 00000733  0x0000041f branch  0x00004370 
+ 00000734  0x00000423 fetch  0x00000001 , 0x000046f5 
+ 00000735  0x00000424 bbit0  0x00000005 , 0x00004237 
+ 00000736  0x00000425 branch  0x00004237 
+ 00000737  0x00000429 fetch  0x00000001 , 0x00004aff 
+ 00000738  0x0000042a rtn  0x00000034 
+ 00000739  0x0000042b fetch  0x00000001 , 0x00004b02 
+ 00000740  0x0000042c beq  0x00000000 , 0x000002e7 
+ 00000741  0x0000042d beq  0x00000001 , 0x000002ef 
+ 00000742  0x0000042e rtn 
+ 00000743  0x00000431 call  0x000002ff 
+ 00000744  0x00000432 fetch  0x00000001 , 0x00004b03 
+ 00000745  0x00000433 increase  0x00000001 , 0x0000003f 
+ 00000746  0x00000434 store  0x00000001 , 0x00004b03 
+ 00000747  0x00000435 fetcht  0x00000001 , 0x00004b04 
+ 00000748  0x00000436 isub  0x00000002 , 0x0000003e 
+ 00000749  0x00000437 call  0x0000030a , 0x00000005 
+ 00000750  0x00000438 rtn 
+ 00000751  0x0000043b fetch  0x00000001 , 0x00004b05 
+ 00000752  0x0000043c increase  0xffffffff , 0x0000003f 
+ 00000753  0x0000043d store  0x00000001 , 0x00004b05 
+ 00000754  0x0000043e nrtn  0x00000034 
+ 00000755  0x0000043f fetch  0x00000001 , 0x00004b06 
+ 00000756  0x00000440 store  0x00000001 , 0x00004b05 
+ 00000757  0x00000441 fetch  0x00000001 , 0x00004b08 
+ 00000758  0x00000442 branch  0x000002fb , 0x00000034 
+ 00000759  0x00000443 fetch  0x00000001 , 0x00004b07 
+ 00000760  0x00000444 branch  0x00000307 , 0x00000034 
+ 00000761  0x00000445 increase  0xffffffff , 0x0000003f 
+ 00000762  0x00000446 store  0x00000001 , 0x00004b07 
+ 00000763  0x00000448 fetch  0x00000001 , 0x00004b01 
+ 00000764  0x00000449 beq  0x00000001 , 0x0000030a 
+ 00000765  0x0000044a beq  0x00000000 , 0x000002ff 
+ 00000766  0x0000044b rtn 
+ 00000767  0x0000044e jam  0x00000001 , 0x00004b01 
+ 00000768  0x0000044f fetcht  0x00000001 , 0x00004b00 
+ 00000769  0x00000450 call  0x0000680e 
+ 00000770  0x00000451 fetch  0x00000001 , 0x00004b00 
+ 00000771  0x00000452 store  0x00000001 , 0x00004715 
+ 00000772  0x00000453 fetch  0x00000001 , 0x00004720 
+ 00000773  0x00000454 beq  0x00000002 , 0x00004296 
+ 00000774  0x00000455 branch  0x00004298 
+ 00000775  0x00000458 jam  0x00000000 , 0x00004b05 
+ 00000776  0x00000459 jam  0x00000000 , 0x00004b07 
+ 00000777  0x0000045a jam  0x00000000 , 0x00004b08 
+ 00000778  0x0000045c fetch  0x00000001 , 0x00004b07 
+ 00000779  0x0000045d nbranch  0x0000030e , 0x00000034 
+ 00000780  0x0000045e jam  0x00000000 , 0x00004aff 
+ 00000781  0x0000045f jam  0x00000000 , 0x00004b02 
+ 00000782  0x00000461 jam  0x00000000 , 0x00004b03 
+ 00000783  0x00000462 jam  0x00000000 , 0x00004b01 
+ 00000784  0x00000463 branch  0x00000178 
+ 00000785  0x00000468 jam  0x00000001 , 0x00004aff 
+ 00000786  0x00000469 jam  0x00000000 , 0x00004b02 
+ 00000787  0x0000046a jam  0x00000000 , 0x00004b03 
+ 00000788  0x0000046b rtn 
+ 00000789  0x0000046e jam  0x00000001 , 0x00004b05 
+ 00000790  0x0000046f jam  0x00000005 , 0x00004b06 
+ 00000791  0x00000470 jam  0x00000000 , 0x00004b08 
+ 00000792  0x00000471 jam  0x00000001 , 0x00004b07 
+ 00000793  0x00000473 jam  0x00000001 , 0x00004aff 
+ 00000794  0x00000474 jam  0x00000001 , 0x00004b02 
+ 00000795  0x00000475 rtn 
+ 00000796  0x00000478 fetch  0x00000001 , 0x00004b03 
+ 00000797  0x00000479 nrtn  0x00000034 
+ 00000798  0x0000047a branch  0x00000307 
+ 00000799  0x0000047d jam  0x0000000a , 0x00004b05 
+ 00000800  0x0000047e jam  0x00000005 , 0x00004b06 
+ 00000801  0x0000047f jam  0x00000001 , 0x00004b08 
+ 00000802  0x00000480 branch  0x00000319 
+ 00000803  0x00000484 fetch  0x00000004 , 0x000046d3 
+ 00000804  0x00000485 rtnbit0  0x00000004 
+ 00000805  0x00000486 fetch  0x00000002 , 0x00004682 
+ 00000806  0x00000487 rtnbit1  0x0000000b 
+ 00000807  0x00000488 rtnbit1  0x00000006 
+ 00000808  0x00000489 fetch  0x00000001 , 0x00004b07 
+ 00000809  0x0000048a nrtn  0x00000034 
+ 00000810  0x0000048b fetch  0x00000001 , 0x00004b03 
+ 00000811  0x0000048c nrtn  0x00000034 
+ 00000812  0x0000048d fetch  0x00000001 , 0x000046cf 
+ 00000813  0x0000048e pincrease  0x00000001 
+ 00000814  0x0000048f store  0x00000001 , 0x000046cf 
+ 00000815  0x00000490 beq  0x00000003 , 0x0000030a 
+ 00000816  0x00000491 sub  0x0000003f , 0x00000014 , 0x0000003e 
+ 00000817  0x00000492 nbranch  0x00000333 , 0x00000002 
+ 00000818  0x00000493 rtn 
+ 00000819  0x00000495 jam  0x00000001 , 0x000046cf 
+ 00000820  0x00000496 branch  0x000002ff 
  00000821  0x0000049a fetch  0x00000004 , 0x000046d3 
  00000822  0x0000049b rtnbit0  0x0000001a 
  00000823  0x0000049c fetch  0x00000001 , 0x000046ce 
@@ -841,7 +841,7 @@
  00000840  0x000004ae fetch  0x00000001 , 0x00004b0a 
  00000841  0x000004af rtn  0x00000034 
  00000842  0x000004b0 jam  0x00000000 , 0x00004b0a 
- 00000843  0x000004b1 branch  0x00000309 
+ 00000843  0x000004b1 branch  0x0000030a 
  00000844  0x000004b4 fetch  0x00000001 , 0x0000422d 
  00000845  0x000004b5 beq  0x00000002 , 0x0000034f 
  00000846  0x000004b6 branch  0x000068ec 
@@ -971,7 +971,7 @@
  00000970  0x00000555 isolate1  0x00000001 , 0x0000003f 
  00000971  0x00000556 call  0x000003d6 , 0x00000001 
  00000972  0x00000557 call  0x000042c4 
- 00000973  0x00000558 branch  0x00000314 
+ 00000973  0x00000558 branch  0x00000315 
  00000974  0x0000055b arg  0x00000002 , 0x00000002 
  00000975  0x0000055c arg  0x000047c2 , 0x00000011 
  00000976  0x0000055d arg  0x0000005f , 0x00000012 
@@ -985,7 +985,7 @@
  00000984  0x00000569 setarg  0x00000005 
  00000985  0x0000056a istore  0x00000001 , 0x00000006 
  00000986  0x0000056b branch  0x00007df4 
- 00000987  0x0000056e call  0x00000306 
+ 00000987  0x0000056e call  0x00000307 
  00000988  0x0000056f setarg  0x00000000 
  00000989  0x00000570 store  0x00000002 , 0x000046ac 
  00000990  0x00000571 call  0x00000139 
Index: 24G&BLE/output/bt_program23.list
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.list	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.list	(working copy)
@@ -823,131 +823,131 @@
 0x02ca 001033 branch mouse_disable_function_flag 
 :      001034 p_mouse_select_device_button_down:
 0x02cb 001035 call p_mouse_button_select_device_timer 
-0x02cc 001036 fetch 1 ,mem_select_device_button_statue 
-0x02cd 001037 rtneq dpi_button_state_down 
-0x02ce 001038 jam dpi_button_state_down ,mem_select_device_button_statue 
-0x02cf 001039 rtn 
-:      001040 p_mouse_button_select_device_timer:
-0x02d0 001041 arg mem_mouse_button_select_device_count ,regc 
-0x02d1 001042 arg p_mouse_long_button_select_device ,regb 
-0x02d2 001043 branch timer_single_step 
-:      001044 p_mouse_long_button_select_device:
-0x02d3 001045 fetch mouse_flag_len ,mem_mouse_flag 
-0x02d4 001046 rtnbit1 mouse_long_bt_button_flag 
-0x02d5 001047 jam 0 ,mem_mouse_long_button_select_device 
-0x02d6 001048 arg 1 ,temp 
-0x02d7 001049 arg mem_mouse_long_button_select_device ,rega 
-0x02d8 001050 arg mouse_device_mode_eeprom_offset ,regb 
-0x02d9 001051 call iicd_write_eep_data 
-0x02da 001052 branch mouse_ready_reconnection_by_button 
-:      001055 p_mouse_check_direct_timeout_timer:
-0x02db 001056 fetch 1 ,mem_config_function_enable 
-0x02dc 001057 bbit0 enable_select_device_by_gpio_button ,mouse_check_direct_timeout_timer 
-0x02dd 001058 fetch 1 ,mem_select_device_button_statue 
-0x02de 001059 rtneq dpi_button_state_down 
-0x02df 001060 branch mouse_check_direct_timeout_timer 
-:      001063 p_mouse_multi_led_blink_timer:
-0x02e0 001064 fetch 1 ,mem_mouse_multi_led_blink_enable 
-0x02e1 001065 rtn blank 
-0x02e2 001066 fetch 1 ,mem_mouse_multi_led_type 
-0x02e3 001067 beq multi_led_on ,p_mouse_multi_led_type_on 
-0x02e4 001068 beq multi_led_blink ,p_mouse_multi_led_type_blink 
-0x02e5 001069 rtn 
-:      001071 p_mouse_multi_led_type_on:
-0x02e6 001072 call p_mouse_multi_led_on 
-0x02e7 001073 fetch 1 ,mem_mouse_multi_led_on_timer 
-0x02e8 001074 increase 1 ,pdata 
-0x02e9 001075 store 1 ,mem_mouse_multi_led_on_timer 
-0x02ea 001076 fetcht 1 ,mem_mouse_multi_led_on_timer_init 
-0x02eb 001077 isub temp ,null 
-0x02ec 001078 call p_mouse_multi_led_off ,zero 
-0x02ed 001079 rtn 
-:      001081 p_mouse_multi_led_type_blink:
-0x02ee 001082 fetch 1 ,mem_mouse_multi_led_blink_timer 
-0x02ef 001083 increase -1 ,pdata 
-0x02f0 001084 store 1 ,mem_mouse_multi_led_blink_timer 
-0x02f1 001085 nrtn blank 
-0x02f2 001086 fetch 1 ,mem_mouse_multi_led_blink_timer_init 
-0x02f3 001087 store 1 ,mem_mouse_multi_led_blink_timer 
-0x02f4 001088 fetch 1 ,mem_mouse_multi_led_blink_count_limited 
-0x02f5 001089 branch p_mouse_multi_led_blink_count_no_limited ,blank 
-0x02f6 001090 fetch 1 ,mem_mouse_multi_led_blink_count 
-0x02f7 001091 branch p_mouse_multi_led_blink_off ,blank 
-0x02f8 001092 increase -1 ,pdata 
-0x02f9 001093 store 1 ,mem_mouse_multi_led_blink_count 
-:      001094 p_mouse_multi_led_blink_count_no_limited:
-0x02fa 001095 fetch 1 ,mem_mouse_multi_led_state 
-0x02fb 001096 beq on ,p_mouse_multi_led_off 
-0x02fc 001097 beq off ,p_mouse_multi_led_on 
-0x02fd 001098 rtn 
-:      001100 p_mouse_multi_led_on:
-0x02fe 001101 jam on ,mem_mouse_multi_led_state 
-0x02ff 001102 fetcht 1 ,mem_mouse_multi_led_gpio 
-0x0300 001103 call gpio_config_output 
-0x0301 001104 fetch 1 ,mem_mouse_multi_led_gpio 
-0x0302 001105 store 1 ,mem_mouse_struct_led_gpio 
-0x0303 001106 fetch 1 ,mem_device_flag 
-0x0304 001107 beq mode_24g_device ,mouse_led_off 
-0x0305 001108 branch mouse_led_on 
-:      001110 p_mouse_multi_led_blink_off:
-0x0306 001111 jam 0 ,mem_mouse_multi_led_blink_timer 
-0x0307 001112 jam 0 ,mem_mouse_multi_led_blink_count 
-0x0308 001113 jam 0 ,mem_mouse_multi_led_blink_count_limited 
-:      001114 p_mouse_multi_led_off:
-0x0309 001115 fetch 1 ,mem_mouse_multi_led_blink_count 
-0x030a 001116 nbranch p_mouse_multi_led_off_wait_blink_over ,blank 
-0x030b 001117 jam 0 ,mem_mouse_multi_led_blink_enable 
-0x030c 001118 jam 0 ,mem_mouse_multi_led_type 
-:      001119 p_mouse_multi_led_off_wait_blink_over:
-0x030d 001120 jam 0 ,mem_mouse_multi_led_on_timer 
-0x030e 001121 jam off ,mem_mouse_multi_led_state 
-0x030f 001122 branch p_mouse_multi_led_gpio_set_float 
-:      001125 p_mouse_mode_bt_device1_multi_led_on:
-:      001126 p_mouse_mode_24g_device_multi_led_on:
-0x0310 001127 jam on ,mem_mouse_multi_led_blink_enable 
-0x0311 001128 jam multi_led_on ,mem_mouse_multi_led_type 
-0x0312 001129 jam 0 ,mem_mouse_multi_led_on_timer 
-0x0313 001130 rtn 
-:      001132 p_mouse_discovery_multi_led_blink:
-0x0314 001133 jam 1 ,mem_mouse_multi_led_blink_timer 
-0x0315 001134 jam 5 ,mem_mouse_multi_led_blink_timer_init 
-0x0316 001135 jam 0 ,mem_mouse_multi_led_blink_count_limited 
-0x0317 001136 jam 1 ,mem_mouse_multi_led_blink_count 
-:      001137 p_mouse_multi_led_blink_enable:
-0x0318 001138 jam on ,mem_mouse_multi_led_blink_enable 
-0x0319 001139 jam multi_led_blink ,mem_mouse_multi_led_type 
-0x031a 001140 rtn 
-:      001142 p_mouse_discovey_led_blink_off:
-0x031b 001143 fetch 1 ,mem_mouse_multi_led_on_timer 
-0x031c 001144 nrtn blank 
-0x031d 001145 branch p_mouse_multi_led_blink_off 
-:      001147 p_mouse_dpi_multi_led_blink:
-0x031e 001148 jam 10 ,mem_mouse_multi_led_blink_timer 
-0x031f 001149 jam 5 ,mem_mouse_multi_led_blink_timer_init 
-0x0320 001150 jam 1 ,mem_mouse_multi_led_blink_count_limited 
-0x0321 001151 branch p_mouse_multi_led_blink_enable 
-:      001154 p_mouse_low_voltage_led_timer:
-0x0322 001155 fetch mouse_flag_len ,mem_mouse_flag 
-0x0323 001156 rtnbit0 mouse_low_voltage_flag 
-0x0324 001157 fetch 2 ,mem_ui_state_map 
-0x0325 001158 rtnbit1 ui_state_ble_adv 
-0x0326 001159 rtnbit1 ui_state_bt_discovery 
-0x0327 001160 fetch 1 ,mem_mouse_multi_led_blink_count 
-0x0328 001161 nrtn blank 
-0x0329 001162 fetch 1 ,mem_mouse_multi_led_on_timer 
-0x032a 001163 nrtn blank 
-0x032b 001164 fetch 1 ,mem_adc_low_volatage_led_timer_count 
-0x032c 001165 pincrease 1 
-0x032d 001166 store 1 ,mem_adc_low_volatage_led_timer_count 
-0x032e 001167 beq 3 ,p_mouse_multi_led_off 
-0x032f 001168 sub pdata ,20 ,null 
-0x0330 001169 nbranch p_mouse_adc_low_volatage_led_timer_count_clean ,positive 
-0x0331 001170 rtn 
-:      001171 p_mouse_adc_low_volatage_led_timer_count_clean:
-0x0332 001172 jam 1 ,mem_adc_low_volatage_led_timer_count 
-0x0333 001173 branch p_mouse_multi_led_on 
-:      001176 p_mouse_adc_read:
-0x0334 001177 rtn 
+0x02cc 001036 jam 40 ,mem_mouse_null_enter_hibernate_timer 
+0x02cd 001037 fetch 2 ,mem_mouse_direct_timeout 
+0x02ce 001038 store 2 ,mem_mouse_direct_timer 
+0x02cf 001039 fetch 1 ,mem_select_device_button_statue 
+0x02d0 001040 rtneq dpi_button_state_down 
+0x02d1 001041 jam dpi_button_state_down ,mem_select_device_button_statue 
+0x02d2 001042 rtn 
+:      001043 p_mouse_button_select_device_timer:
+0x02d3 001044 arg mem_mouse_button_select_device_count ,regc 
+0x02d4 001045 arg p_mouse_long_button_select_device ,regb 
+0x02d5 001046 branch timer_single_step 
+:      001047 p_mouse_long_button_select_device:
+0x02d6 001048 fetch mouse_flag_len ,mem_mouse_flag 
+0x02d7 001049 rtnbit1 mouse_long_bt_button_flag 
+0x02d8 001050 jam 0 ,mem_mouse_long_button_select_device 
+0x02d9 001051 arg 1 ,temp 
+0x02da 001052 arg mem_mouse_long_button_select_device ,rega 
+0x02db 001053 arg mouse_device_mode_eeprom_offset ,regb 
+0x02dc 001054 call iicd_write_eep_data 
+0x02dd 001055 branch mouse_ready_reconnection_by_button 
+:      001058 p_mouse_check_direct_timeout_timer:
+0x02de 001059 fetch 1 ,mem_config_function_enable 
+0x02df 001060 bbit0 enable_select_device_by_gpio_button ,mouse_check_direct_timeout_timer 
+0x02e0 001061 branch mouse_check_direct_timeout_timer 
+:      001064 p_mouse_multi_led_blink_timer:
+0x02e1 001065 fetch 1 ,mem_mouse_multi_led_blink_enable 
+0x02e2 001066 rtn blank 
+0x02e3 001067 fetch 1 ,mem_mouse_multi_led_type 
+0x02e4 001068 beq multi_led_on ,p_mouse_multi_led_type_on 
+0x02e5 001069 beq multi_led_blink ,p_mouse_multi_led_type_blink 
+0x02e6 001070 rtn 
+:      001072 p_mouse_multi_led_type_on:
+0x02e7 001073 call p_mouse_multi_led_on 
+0x02e8 001074 fetch 1 ,mem_mouse_multi_led_on_timer 
+0x02e9 001075 increase 1 ,pdata 
+0x02ea 001076 store 1 ,mem_mouse_multi_led_on_timer 
+0x02eb 001077 fetcht 1 ,mem_mouse_multi_led_on_timer_init 
+0x02ec 001078 isub temp ,null 
+0x02ed 001079 call p_mouse_multi_led_off ,zero 
+0x02ee 001080 rtn 
+:      001082 p_mouse_multi_led_type_blink:
+0x02ef 001083 fetch 1 ,mem_mouse_multi_led_blink_timer 
+0x02f0 001084 increase -1 ,pdata 
+0x02f1 001085 store 1 ,mem_mouse_multi_led_blink_timer 
+0x02f2 001086 nrtn blank 
+0x02f3 001087 fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+0x02f4 001088 store 1 ,mem_mouse_multi_led_blink_timer 
+0x02f5 001089 fetch 1 ,mem_mouse_multi_led_blink_count_limited 
+0x02f6 001090 branch p_mouse_multi_led_blink_count_no_limited ,blank 
+0x02f7 001091 fetch 1 ,mem_mouse_multi_led_blink_count 
+0x02f8 001092 branch p_mouse_multi_led_blink_off ,blank 
+0x02f9 001093 increase -1 ,pdata 
+0x02fa 001094 store 1 ,mem_mouse_multi_led_blink_count 
+:      001095 p_mouse_multi_led_blink_count_no_limited:
+0x02fb 001096 fetch 1 ,mem_mouse_multi_led_state 
+0x02fc 001097 beq on ,p_mouse_multi_led_off 
+0x02fd 001098 beq off ,p_mouse_multi_led_on 
+0x02fe 001099 rtn 
+:      001101 p_mouse_multi_led_on:
+0x02ff 001102 jam on ,mem_mouse_multi_led_state 
+0x0300 001103 fetcht 1 ,mem_mouse_multi_led_gpio 
+0x0301 001104 call gpio_config_output 
+0x0302 001105 fetch 1 ,mem_mouse_multi_led_gpio 
+0x0303 001106 store 1 ,mem_mouse_struct_led_gpio 
+0x0304 001107 fetch 1 ,mem_device_flag 
+0x0305 001108 beq mode_24g_device ,mouse_led_off 
+0x0306 001109 branch mouse_led_on 
+:      001111 p_mouse_multi_led_blink_off:
+0x0307 001112 jam 0 ,mem_mouse_multi_led_blink_timer 
+0x0308 001113 jam 0 ,mem_mouse_multi_led_blink_count 
+0x0309 001114 jam 0 ,mem_mouse_multi_led_blink_count_limited 
+:      001115 p_mouse_multi_led_off:
+0x030a 001116 fetch 1 ,mem_mouse_multi_led_blink_count 
+0x030b 001117 nbranch p_mouse_multi_led_off_wait_blink_over ,blank 
+0x030c 001118 jam 0 ,mem_mouse_multi_led_blink_enable 
+0x030d 001119 jam 0 ,mem_mouse_multi_led_type 
+:      001120 p_mouse_multi_led_off_wait_blink_over:
+0x030e 001121 jam 0 ,mem_mouse_multi_led_on_timer 
+0x030f 001122 jam off ,mem_mouse_multi_led_state 
+0x0310 001123 branch p_mouse_multi_led_gpio_set_float 
+:      001126 p_mouse_mode_bt_device1_multi_led_on:
+:      001127 p_mouse_mode_24g_device_multi_led_on:
+0x0311 001128 jam on ,mem_mouse_multi_led_blink_enable 
+0x0312 001129 jam multi_led_on ,mem_mouse_multi_led_type 
+0x0313 001130 jam 0 ,mem_mouse_multi_led_on_timer 
+0x0314 001131 rtn 
+:      001133 p_mouse_discovery_multi_led_blink:
+0x0315 001134 jam 1 ,mem_mouse_multi_led_blink_timer 
+0x0316 001135 jam 5 ,mem_mouse_multi_led_blink_timer_init 
+0x0317 001136 jam 0 ,mem_mouse_multi_led_blink_count_limited 
+0x0318 001137 jam 1 ,mem_mouse_multi_led_blink_count 
+:      001138 p_mouse_multi_led_blink_enable:
+0x0319 001139 jam on ,mem_mouse_multi_led_blink_enable 
+0x031a 001140 jam multi_led_blink ,mem_mouse_multi_led_type 
+0x031b 001141 rtn 
+:      001143 p_mouse_discovey_led_blink_off:
+0x031c 001144 fetch 1 ,mem_mouse_multi_led_on_timer 
+0x031d 001145 nrtn blank 
+0x031e 001146 branch p_mouse_multi_led_blink_off 
+:      001148 p_mouse_dpi_multi_led_blink:
+0x031f 001149 jam 10 ,mem_mouse_multi_led_blink_timer 
+0x0320 001150 jam 5 ,mem_mouse_multi_led_blink_timer_init 
+0x0321 001151 jam 1 ,mem_mouse_multi_led_blink_count_limited 
+0x0322 001152 branch p_mouse_multi_led_blink_enable 
+:      001155 p_mouse_low_voltage_led_timer:
+0x0323 001156 fetch mouse_flag_len ,mem_mouse_flag 
+0x0324 001157 rtnbit0 mouse_low_voltage_flag 
+0x0325 001158 fetch 2 ,mem_ui_state_map 
+0x0326 001159 rtnbit1 ui_state_ble_adv 
+0x0327 001160 rtnbit1 ui_state_bt_discovery 
+0x0328 001161 fetch 1 ,mem_mouse_multi_led_blink_count 
+0x0329 001162 nrtn blank 
+0x032a 001163 fetch 1 ,mem_mouse_multi_led_on_timer 
+0x032b 001164 nrtn blank 
+0x032c 001165 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+0x032d 001166 pincrease 1 
+0x032e 001167 store 1 ,mem_adc_low_volatage_led_timer_count 
+0x032f 001168 beq 3 ,p_mouse_multi_led_off 
+0x0330 001169 sub pdata ,20 ,null 
+0x0331 001170 nbranch p_mouse_adc_low_volatage_led_timer_count_clean ,positive 
+0x0332 001171 rtn 
+:      001172 p_mouse_adc_low_volatage_led_timer_count_clean:
+0x0333 001173 jam 1 ,mem_adc_low_volatage_led_timer_count 
+0x0334 001174 branch p_mouse_multi_led_on 
+:      001177 p_mouse_adc_read:
 0x0335 001178 fetch mouse_flag_len ,mem_mouse_flag 
 0x0336 001179 rtnbit0 mouse_enable_adc 
 0x0337 001180 fetch 1 ,mem_adc_read_timer 
Index: 24G&BLE/output/bt_program23.meta
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.meta	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.meta	(working copy)
@@ -1033,6 +1033,9 @@
 	branch mouse_disable_function_flag
 p_mouse_select_device_button_down:
 	call p_mouse_button_select_device_timer
+	jam 40,mem_mouse_null_enter_hibernate_timer
+	fetch 2,mem_mouse_direct_timeout
+	store 2,mem_mouse_direct_timer
 	fetch 1,mem_select_device_button_statue
 	rtneq DPI_BUTTON_STATE_DOWN
 	jam DPI_BUTTON_STATE_DOWN,mem_select_device_button_statue
@@ -1055,8 +1058,6 @@
 p_mouse_check_direct_timeout_timer:
 	fetch 1,mem_config_function_enable
 	bbit0 ENABLE_SELECT_DEVICE_BY_GPIO_BUTTON,mouse_check_direct_timeout_timer
-	fetch 1,mem_select_device_button_statue
-	rtneq DPI_BUTTON_STATE_DOWN
 	branch mouse_check_direct_timeout_timer
 
 
@@ -1091,7 +1092,7 @@
 	branch p_mouse_multi_led_blink_off,blank
 	increase -1,pdata
 	store 1,mem_mouse_multi_led_blink_count
-p_mouse_multi_led_blink_count_no_limited:	
+p_mouse_multi_led_blink_count_no_limited:
 	fetch 1,mem_mouse_multi_led_state
 	beq ON,p_mouse_multi_led_off
 	beq OFF,p_mouse_multi_led_on
@@ -1174,7 +1175,6 @@
 
 
 p_mouse_adc_read:
-	rtn
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	rtnbit0 MOUSE_ENABLE_ADC
 	fetch 1,mem_adc_read_timer
Index: 24G&BLE/output/bt_program23.rom
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.rom	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/bt_program23.rom	(working copy)
@@ -249,12 +249,12 @@
 01101000000010001100011100000011
 10011000010001100111110000000000
 00100000001000101000000100000000
-00100000010000000000001100010000
+00100000010000000000001100010001
 01101000000000001100001000010000
 11000000000110011000000100000010
 11000000000110100000000100000101
 00100000011000000000000000000000
-00100000010000000000001100010000
+00100000010000000000001100010001
 00100000001000000000000110010011
 01101000000000110100000111010000
 00100000001110100011001111101011
@@ -504,7 +504,7 @@
 01100000000000001100011101111010
 00011111111000001111111000000010
 01100000000000010100101100000111
-00100000010000000000001100011110
+00100000010000000000001100011111
 00100000001000000011110101110100
 01110000010010110000100111111111
 11011000010000000000000000000001
@@ -528,7 +528,7 @@
 11000000000111010000001001100010
 11000000000111100011111110001101
 00100000001000000100000101111101
-00100000010000000000001100011011
+00100000010000000000001100011100
 00100000010000000000011101111111
 00100000001000000100000111000011
 01011000000000000000000000000111
@@ -576,7 +576,7 @@
 01100000000000001100100000001000
 01110000010000011110001100010010
 00100000001000000011010000001110
-00100000010000000000001100011011
+00100000010000000000001100011100
 01110000010010000000100100000000
 00100000001000000100001011001010
 01101000000000001100100000001000
@@ -642,13 +642,13 @@
 00100000010000000000001010110010
 00100000010000000000001010010111
 00100000010000000000001010111011
-00100000010000000000001011100000
+00100000010000000000001011100001
 00100000010000000100001000110001
 00100000010000000100001000110100
-00100000010000000000001011011011
+00100000010000000000001011011110
 00100000010000000100001000111010
-00100000010000000000001100110100
-00100000010000000000001100100010
+00100000010000000000001100110101
+00100000010000000000001100100011
 00100000001000000000001010010100
 11011010011000000100100000001001
 11011010010000000110001101111010
@@ -713,13 +713,16 @@
 01110000010001101101100100000001
 11011000111000000000000000000110
 00100000001000000100001111010010
-00100000010000000000001011010000
+00100000010000000000001011010011
+01110000010001111001111000101000
+01101000000000010100011010101000
+01100000000000010100011010101110
 01101000000000001100011011011001
 11000001000000000000000000000000
 01110000010001101101100100000000
 00100000011000000000000000000000
 11011010011000000100101011111110
-11011010010000000000001011010011
+11011010010000000000001011010110
 00100000001000000011001101101101
 01101000000000100100011011010011
 11000011100000110000000000000000
@@ -731,22 +734,20 @@
 00100000001000000100001101110000
 01101000000000001100011011110101
 11000011000000101100001000110111
-01101000000000001100011011011001
-11000001000000000000000000000000
 00100000001000000100001000110111
 01101000000000001100101011111111
 00100000011110100000000000000000
 01101000000000001100101100000010
-11000000000000000000001011100110
-11000000000000001000001011101110
+11000000000000000000001011100111
+11000000000000001000001011101111
 00100000011000000000000000000000
-00100000010000000000001011111110
+00100000010000000000001011111111
 01101000000000001100101100000011
 00011111111000001111111000000001
 01100000000000001100101100000011
 01101000000010001100101100000100
 10011000010001100111110000000000
-00100000010000101000001100001001
+00100000010000101000001100001010
 00100000011000000000000000000000
 01101000000000001100101100000101
 00011111111000001111111111111111
@@ -755,14 +756,14 @@
 01101000000000001100101100000110
 01100000000000001100101100000101
 01101000000000001100101100001000
-00100000001110100000001011111010
+00100000001110100000001011111011
 01101000000000001100101100000111
-00100000001110100000001100000110
+00100000001110100000001100000111
 00011111111000001111111111111111
 01100000000000001100101100000111
 01101000000000001100101100000001
-11000000000000001000001100001001
-11000000000000000000001011111110
+11000000000000001000001100001010
+11000000000000000000001011111111
 00100000011000000000000000000000
 01110000010010110000000100000001
 01101000000010001100101100000000
@@ -776,7 +777,7 @@
 01110000010010110000011100000000
 01110000010010110000100000000000
 01101000000000001100101100000111
-00100100001110100000001100001101
+00100100001110100000001100001110
 01110000010010101111111100000000
 01110000010010110000001000000000
 01110000010010110000001100000000
@@ -795,11 +796,11 @@
 00100000011000000000000000000000
 01101000000000001100101100000011
 00100100011110100000000000000000
-00100000001000000000001100000110
+00100000001000000000001100000111
 01110000010010110000010100001010
 01110000010010110000011000000101
 01110000010010110000100000000001
-00100000001000000000001100011000
+00100000001000000000001100011001
 01101000000000100100011011010011
 11000100000000100000000000000000
 01101000000000010100011010000010
@@ -812,13 +813,12 @@
 01101000000000001100011011001111
 00011111111000001111111000000001
 01100000000000001100011011001111
-11000000000000011000001100001001
+11000000000000011000001100001010
 00011111111001100111110000010100
-00100100001000010000001100110010
+00100100001000010000001100110011
 00100000011000000000000000000000
 01110000010001101100111100000001
-00100000001000000000001011111110
-00100000011000000000000000000000
+00100000001000000000001011111111
 01101000000000100100011011010011
 11000100000011010000000000000000
 01101000000000001100011011001110
@@ -841,7 +841,7 @@
 01101000000000001100101100001010
 00100000011110100000000000000000
 01110000010010110000101000000000
-00100000001000000000001100001001
+00100000001000000000001100001010
 01101000000000001100001000101101
 11000000000000010000001101001111
 00100000001000000110100011101100
@@ -971,7 +971,7 @@
 00101111111011111111111000000001
 00100000010000001000001111010110
 00100000010000000100001011000100
-00100000001000000000001100010100
+00100000001000000000001100010101
 11011000010000000000000000000010
 11011010001000000100011111000010
 11011010010000000000000001011111
@@ -985,7 +985,7 @@
 01011000000000000000000000000101
 11100000110000001000000000000000
 00100000001000000111110111110100
-00100000010000000000001100000110
+00100000010000000000001100000111
 01011000000000000000000000000000
 01100000000000010100011010101100
 00100000010000000000000100111001
Index: 24G&BLE/output/eeprom.dat
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/eeprom.dat	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/eeprom.dat	(working copy)
@@ -1011,7 +1011,7 @@
 20
 40
 03
-10
+11
 68
 00
 c2
@@ -1031,7 +1031,7 @@
 20
 40
 03
-10
+11
 20
 20
 01
@@ -2031,7 +2031,7 @@
 20
 40
 03
-1e
+1f
 20
 20
 3d
@@ -2127,7 +2127,7 @@
 20
 40
 03
-1b
+1c
 20
 40
 07
@@ -2319,7 +2319,7 @@
 20
 40
 03
-1b
+1c
 70
 48
 09
@@ -2583,7 +2583,7 @@
 20
 40
 02
-e0
+e1
 20
 40
 42
@@ -2595,7 +2595,7 @@
 20
 40
 02
-db
+de
 20
 40
 42
@@ -2603,11 +2603,11 @@
 20
 40
 03
-34
+35
 20
 40
 03
-22
+23
 20
 20
 02
@@ -2867,7 +2867,19 @@
 20
 40
 02
-d0
+d3
+70
+47
+9e
+28
+68
+01
+46
+a8
+60
+01
+46
+ae
 68
 00
 c6
@@ -2891,7 +2903,7 @@
 da
 40
 02
-d3
+d6
 20
 20
 33
@@ -2936,14 +2948,6 @@
 02
 c2
 37
-68
-00
-c6
-d9
-c1
-00
-00
-00
 20
 20
 42
@@ -2963,11 +2967,11 @@
 c0
 00
 02
-e6
+e7
 c0
 00
 82
-ee
+ef
 20
 60
 00
@@ -2975,7 +2979,7 @@
 20
 40
 02
-fe
+ff
 68
 00
 cb
@@ -2999,7 +3003,7 @@
 20
 42
 83
-09
+0a
 20
 60
 00
@@ -3035,7 +3039,7 @@
 20
 3a
 02
-fa
+fb
 68
 00
 cb
@@ -3043,7 +3047,7 @@
 20
 3a
 03
-06
+07
 1f
 e0
 ff
@@ -3059,11 +3063,11 @@
 c0
 00
 83
-09
+0a
 c0
 00
 02
-fe
+ff
 20
 60
 00
@@ -3119,7 +3123,7 @@
 24
 3a
 03
-0d
+0e
 70
 4a
 ff
@@ -3195,7 +3199,7 @@
 20
 20
 03
-06
+07
 70
 4b
 05
@@ -3211,7 +3215,7 @@
 20
 20
 03
-18
+19
 68
 02
 46
@@ -3263,7 +3267,7 @@
 c0
 01
 83
-09
+0a
 1f
 e6
 7c
@@ -3271,7 +3275,7 @@
 24
 21
 03
-32
+33
 20
 60
 00
@@ -3283,11 +3287,7 @@
 20
 20
 02
-fe
-20
-60
-00
-00
+ff
 68
 02
 46
@@ -3379,7 +3379,7 @@
 20
 20
 03
-09
+0a
 68
 00
 c2
@@ -3899,7 +3899,7 @@
 20
 20
 03
-14
+15
 d8
 40
 00
@@ -3955,7 +3955,7 @@
 20
 40
 03
-06
+07
 58
 00
 00
@@ -7784,8 +7784,8 @@
 20
 3f
 90
-c3
-d9
+ea
+3e
 aa
 55
 08
Index: 24G&BLE/output/program.lis
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/program.lis	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/program.lis	(working copy)
@@ -315,14 +315,14 @@
 00f8 6808c703 fetcht 1 ,mem_24g_device_number 
 00f9 98467c00 isub temp ,null 
 00fa 20228100 branch p_mouse_connect_24g_mode ,zero 
-00fb 20400310 call p_mouse_mode_bt_device1_multi_led_on 
+00fb 20400311 call p_mouse_mode_bt_device1_multi_led_on 
 00fc 6800c210 fetch 1 ,mem_xrecord_mode 
 00fd c0198102 beq rec_3_mode ,p_mouse3_0_check_reconn_target 
 00fe c01a0105 beq rec_4_mode ,p_mouse4_0_check_reconn_target 
 00ff 20600000 rtn 
 
 p_mouse_connect_24g_mode:
-0100 20400310 call p_mouse_mode_24g_device_multi_led_on 
+0100 20400311 call p_mouse_mode_24g_device_multi_led_on 
 0101 20200193 branch p_mouse_start_24g_mode 
 
 p_mouse3_0_check_reconn_target:
@@ -642,7 +642,7 @@
 01f7 6000c77a store 1 ,mem_mouse_dpi 
 01f8 1fe0fe02 increase 2 ,pdata 
 01f9 60014b07 store 2 ,mem_mouse_multi_led_blink_count 
-01fa 2040031e call p_mouse_dpi_multi_led_blink 
+01fa 2040031f call p_mouse_dpi_multi_led_blink 
 01fb 20203d74 branch mouse_dpi_down + 7 
 
 p_mouse_select_device_and_reset:
@@ -672,7 +672,7 @@
 0211 2020417d branch mouse_priority_bb_event + 1 
 
 p_mouse_le_bb_event_connected:
-0212 2040031b call p_mouse_discovey_led_blink_off 
+0212 2040031c call p_mouse_discovey_led_blink_off 
 0213 2040077f call p_mouse_data_init 
 0214 202041c3 branch mouse_le_bb_event_connected 
 
@@ -744,7 +744,7 @@
 0241 2020340e branch app_bt_enter_sniff 
 
 p_mouse_bb_event_connected:
-0242 2040031b call p_mouse_discovey_led_blink_off 
+0242 2040031c call p_mouse_discovey_led_blink_off 
 0243 70480900 jam 0 ,mem_mouse_send_switch_req_timer 
 0244 202042ca branch mouse_stop_discovery 
 
@@ -826,13 +826,13 @@
 0281 204002b2 call p_mouse_null_enter_hibernate_check 
 0282 20400297 call p_mouse_bt_discovery_check 
 0283 204002bb call p_mouse_select_device 
-0284 204002e0 call p_mouse_multi_led_blink_timer 
+0284 204002e1 call p_mouse_multi_led_blink_timer 
 0285 20404231 call mouse_check_hid_handshake_timer 
 0286 20404234 call mouse_check_discovery_timeout_timer 
-0287 204002db call p_mouse_check_direct_timeout_timer 
+0287 204002de call p_mouse_check_direct_timeout_timer 
 0288 2040423a call mouse_check_no_data_timeout_timer 
-0289 20400334 call p_mouse_adc_read 
-028a 20400322 call p_mouse_low_voltage_led_timer 
+0289 20400335 call p_mouse_adc_read 
+028a 20400323 call p_mouse_low_voltage_led_timer 
 028b 20200294 branch p_mouse_le_enable_att_list_timer 
 
 p_mouse_send_switch_req_timer:
@@ -929,152 +929,152 @@
 02ca 202043d2 branch mouse_disable_function_flag 
 
 p_mouse_select_device_button_down:
-02cb 204002d0 call p_mouse_button_select_device_timer 
-02cc 6800c6d9 fetch 1 ,mem_select_device_button_statue 
-02cd c1000000 rtneq dpi_button_state_down 
-02ce 7046d900 jam dpi_button_state_down ,mem_select_device_button_statue 
-02cf 20600000 rtn 
+02cb 204002d3 call p_mouse_button_select_device_timer 
+02cc 70479e28 jam 40 ,mem_mouse_null_enter_hibernate_timer 
+02cd 680146a8 fetch 2 ,mem_mouse_direct_timeout 
+02ce 600146ae store 2 ,mem_mouse_direct_timer 
+02cf 6800c6d9 fetch 1 ,mem_select_device_button_statue 
+02d0 c1000000 rtneq dpi_button_state_down 
+02d1 7046d900 jam dpi_button_state_down ,mem_select_device_button_statue 
+02d2 20600000 rtn 
 
 p_mouse_button_select_device_timer:
-02d0 da604afe arg mem_mouse_button_select_device_count ,regc 
-02d1 da4002d3 arg p_mouse_long_button_select_device ,regb 
-02d2 2020336d branch timer_single_step 
+02d3 da604afe arg mem_mouse_button_select_device_count ,regc 
+02d4 da4002d6 arg p_mouse_long_button_select_device ,regb 
+02d5 2020336d branch timer_single_step 
 
 p_mouse_long_button_select_device:
-02d3 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
-02d4 c3830000 rtnbit1 mouse_long_bt_button_flag 
-02d5 704b0900 jam 0 ,mem_mouse_long_button_select_device 
-02d6 d8400001 arg 1 ,temp 
-02d7 da204b09 arg mem_mouse_long_button_select_device ,rega 
-02d8 da400061 arg mouse_device_mode_eeprom_offset ,regb 
-02d9 20406606 call iicd_write_eep_data 
-02da 20204370 branch mouse_ready_reconnection_by_button 
+02d6 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
+02d7 c3830000 rtnbit1 mouse_long_bt_button_flag 
+02d8 704b0900 jam 0 ,mem_mouse_long_button_select_device 
+02d9 d8400001 arg 1 ,temp 
+02da da204b09 arg mem_mouse_long_button_select_device ,rega 
+02db da400061 arg mouse_device_mode_eeprom_offset ,regb 
+02dc 20406606 call iicd_write_eep_data 
+02dd 20204370 branch mouse_ready_reconnection_by_button 
 
 p_mouse_check_direct_timeout_timer:
-02db 6800c6f5 fetch 1 ,mem_config_function_enable 
-02dc c302c237 bbit0 enable_select_device_by_gpio_button ,mouse_check_direct_timeout_timer 
-02dd 6800c6d9 fetch 1 ,mem_select_device_button_statue 
-02de c1000000 rtneq dpi_button_state_down 
-02df 20204237 branch mouse_check_direct_timeout_timer 
+02de 6800c6f5 fetch 1 ,mem_config_function_enable 
+02df c302c237 bbit0 enable_select_device_by_gpio_button ,mouse_check_direct_timeout_timer 
+02e0 20204237 branch mouse_check_direct_timeout_timer 
 
 p_mouse_multi_led_blink_timer:
-02e0 6800caff fetch 1 ,mem_mouse_multi_led_blink_enable 
-02e1 207a0000 rtn blank 
-02e2 6800cb02 fetch 1 ,mem_mouse_multi_led_type 
-02e3 c00002e6 beq multi_led_on ,p_mouse_multi_led_type_on 
-02e4 c00082ee beq multi_led_blink ,p_mouse_multi_led_type_blink 
-02e5 20600000 rtn 
+02e1 6800caff fetch 1 ,mem_mouse_multi_led_blink_enable 
+02e2 207a0000 rtn blank 
+02e3 6800cb02 fetch 1 ,mem_mouse_multi_led_type 
+02e4 c00002e7 beq multi_led_on ,p_mouse_multi_led_type_on 
+02e5 c00082ef beq multi_led_blink ,p_mouse_multi_led_type_blink 
+02e6 20600000 rtn 
 
 p_mouse_multi_led_type_on:
-02e6 204002fe call p_mouse_multi_led_on 
-02e7 6800cb03 fetch 1 ,mem_mouse_multi_led_on_timer 
-02e8 1fe0fe01 increase 1 ,pdata 
-02e9 6000cb03 store 1 ,mem_mouse_multi_led_on_timer 
-02ea 6808cb04 fetcht 1 ,mem_mouse_multi_led_on_timer_init 
-02eb 98467c00 isub temp ,null 
-02ec 20428309 call p_mouse_multi_led_off ,zero 
-02ed 20600000 rtn 
+02e7 204002ff call p_mouse_multi_led_on 
+02e8 6800cb03 fetch 1 ,mem_mouse_multi_led_on_timer 
+02e9 1fe0fe01 increase 1 ,pdata 
+02ea 6000cb03 store 1 ,mem_mouse_multi_led_on_timer 
+02eb 6808cb04 fetcht 1 ,mem_mouse_multi_led_on_timer_init 
+02ec 98467c00 isub temp ,null 
+02ed 2042830a call p_mouse_multi_led_off ,zero 
+02ee 20600000 rtn 
 
 p_mouse_multi_led_type_blink:
-02ee 6800cb05 fetch 1 ,mem_mouse_multi_led_blink_timer 
-02ef 1fe0ffff increase -1 ,pdata 
-02f0 6000cb05 store 1 ,mem_mouse_multi_led_blink_timer 
-02f1 247a0000 nrtn blank 
-02f2 6800cb06 fetch 1 ,mem_mouse_multi_led_blink_timer_init 
-02f3 6000cb05 store 1 ,mem_mouse_multi_led_blink_timer 
-02f4 6800cb08 fetch 1 ,mem_mouse_multi_led_blink_count_limited 
-02f5 203a02fa branch p_mouse_multi_led_blink_count_no_limited ,blank 
-02f6 6800cb07 fetch 1 ,mem_mouse_multi_led_blink_count 
-02f7 203a0306 branch p_mouse_multi_led_blink_off ,blank 
-02f8 1fe0ffff increase -1 ,pdata 
-02f9 6000cb07 store 1 ,mem_mouse_multi_led_blink_count 
+02ef 6800cb05 fetch 1 ,mem_mouse_multi_led_blink_timer 
+02f0 1fe0ffff increase -1 ,pdata 
+02f1 6000cb05 store 1 ,mem_mouse_multi_led_blink_timer 
+02f2 247a0000 nrtn blank 
+02f3 6800cb06 fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+02f4 6000cb05 store 1 ,mem_mouse_multi_led_blink_timer 
+02f5 6800cb08 fetch 1 ,mem_mouse_multi_led_blink_count_limited 
+02f6 203a02fb branch p_mouse_multi_led_blink_count_no_limited ,blank 
+02f7 6800cb07 fetch 1 ,mem_mouse_multi_led_blink_count 
+02f8 203a0307 branch p_mouse_multi_led_blink_off ,blank 
+02f9 1fe0ffff increase -1 ,pdata 
+02fa 6000cb07 store 1 ,mem_mouse_multi_led_blink_count 
 
 p_mouse_multi_led_blink_count_no_limited:
-02fa 6800cb01 fetch 1 ,mem_mouse_multi_led_state 
-02fb c0008309 beq on ,p_mouse_multi_led_off 
-02fc c00002fe beq off ,p_mouse_multi_led_on 
-02fd 20600000 rtn 
+02fb 6800cb01 fetch 1 ,mem_mouse_multi_led_state 
+02fc c000830a beq on ,p_mouse_multi_led_off 
+02fd c00002ff beq off ,p_mouse_multi_led_on 
+02fe 20600000 rtn 
 
 p_mouse_multi_led_on:
-02fe 704b0101 jam on ,mem_mouse_multi_led_state 
-02ff 6808cb00 fetcht 1 ,mem_mouse_multi_led_gpio 
-0300 2040680e call gpio_config_output 
-0301 6800cb00 fetch 1 ,mem_mouse_multi_led_gpio 
-0302 6000c715 store 1 ,mem_mouse_struct_led_gpio 
-0303 6800c720 fetch 1 ,mem_device_flag 
-0304 c0014296 beq mode_24g_device ,mouse_led_off 
-0305 20204298 branch mouse_led_on 
+02ff 704b0101 jam on ,mem_mouse_multi_led_state 
+0300 6808cb00 fetcht 1 ,mem_mouse_multi_led_gpio 
+0301 2040680e call gpio_config_output 
+0302 6800cb00 fetch 1 ,mem_mouse_multi_led_gpio 
+0303 6000c715 store 1 ,mem_mouse_struct_led_gpio 
+0304 6800c720 fetch 1 ,mem_device_flag 
+0305 c0014296 beq mode_24g_device ,mouse_led_off 
+0306 20204298 branch mouse_led_on 
 
 p_mouse_multi_led_blink_off:
-0306 704b0500 jam 0 ,mem_mouse_multi_led_blink_timer 
-0307 704b0700 jam 0 ,mem_mouse_multi_led_blink_count 
-0308 704b0800 jam 0 ,mem_mouse_multi_led_blink_count_limited 
+0307 704b0500 jam 0 ,mem_mouse_multi_led_blink_timer 
+0308 704b0700 jam 0 ,mem_mouse_multi_led_blink_count 
+0309 704b0800 jam 0 ,mem_mouse_multi_led_blink_count_limited 
 
 p_mouse_multi_led_off:
-0309 6800cb07 fetch 1 ,mem_mouse_multi_led_blink_count 
-030a 243a030d nbranch p_mouse_multi_led_off_wait_blink_over ,blank 
-030b 704aff00 jam 0 ,mem_mouse_multi_led_blink_enable 
-030c 704b0200 jam 0 ,mem_mouse_multi_led_type 
+030a 6800cb07 fetch 1 ,mem_mouse_multi_led_blink_count 
+030b 243a030e nbranch p_mouse_multi_led_off_wait_blink_over ,blank 
+030c 704aff00 jam 0 ,mem_mouse_multi_led_blink_enable 
+030d 704b0200 jam 0 ,mem_mouse_multi_led_type 
 
 p_mouse_multi_led_off_wait_blink_over:
-030d 704b0300 jam 0 ,mem_mouse_multi_led_on_timer 
-030e 704b0100 jam off ,mem_mouse_multi_led_state 
-030f 20200178 branch p_mouse_multi_led_gpio_set_float 
+030e 704b0300 jam 0 ,mem_mouse_multi_led_on_timer 
+030f 704b0100 jam off ,mem_mouse_multi_led_state 
+0310 20200178 branch p_mouse_multi_led_gpio_set_float 
 
 p_mouse_mode_bt_device1_multi_led_on:
 
 p_mouse_mode_24g_device_multi_led_on:
-0310 704aff01 jam on ,mem_mouse_multi_led_blink_enable 
-0311 704b0200 jam multi_led_on ,mem_mouse_multi_led_type 
-0312 704b0300 jam 0 ,mem_mouse_multi_led_on_timer 
-0313 20600000 rtn 
+0311 704aff01 jam on ,mem_mouse_multi_led_blink_enable 
+0312 704b0200 jam multi_led_on ,mem_mouse_multi_led_type 
+0313 704b0300 jam 0 ,mem_mouse_multi_led_on_timer 
+0314 20600000 rtn 
 
 p_mouse_discovery_multi_led_blink:
-0314 704b0501 jam 1 ,mem_mouse_multi_led_blink_timer 
-0315 704b0605 jam 5 ,mem_mouse_multi_led_blink_timer_init 
-0316 704b0800 jam 0 ,mem_mouse_multi_led_blink_count_limited 
-0317 704b0701 jam 1 ,mem_mouse_multi_led_blink_count 
+0315 704b0501 jam 1 ,mem_mouse_multi_led_blink_timer 
+0316 704b0605 jam 5 ,mem_mouse_multi_led_blink_timer_init 
+0317 704b0800 jam 0 ,mem_mouse_multi_led_blink_count_limited 
+0318 704b0701 jam 1 ,mem_mouse_multi_led_blink_count 
 
 p_mouse_multi_led_blink_enable:
-0318 704aff01 jam on ,mem_mouse_multi_led_blink_enable 
-0319 704b0201 jam multi_led_blink ,mem_mouse_multi_led_type 
-031a 20600000 rtn 
+0319 704aff01 jam on ,mem_mouse_multi_led_blink_enable 
+031a 704b0201 jam multi_led_blink ,mem_mouse_multi_led_type 
+031b 20600000 rtn 
 
 p_mouse_discovey_led_blink_off:
-031b 6800cb03 fetch 1 ,mem_mouse_multi_led_on_timer 
-031c 247a0000 nrtn blank 
-031d 20200306 branch p_mouse_multi_led_blink_off 
+031c 6800cb03 fetch 1 ,mem_mouse_multi_led_on_timer 
+031d 247a0000 nrtn blank 
+031e 20200307 branch p_mouse_multi_led_blink_off 
 
 p_mouse_dpi_multi_led_blink:
-031e 704b050a jam 10 ,mem_mouse_multi_led_blink_timer 
-031f 704b0605 jam 5 ,mem_mouse_multi_led_blink_timer_init 
-0320 704b0801 jam 1 ,mem_mouse_multi_led_blink_count_limited 
-0321 20200318 branch p_mouse_multi_led_blink_enable 
+031f 704b050a jam 10 ,mem_mouse_multi_led_blink_timer 
+0320 704b0605 jam 5 ,mem_mouse_multi_led_blink_timer_init 
+0321 704b0801 jam 1 ,mem_mouse_multi_led_blink_count_limited 
+0322 20200319 branch p_mouse_multi_led_blink_enable 
 
 p_mouse_low_voltage_led_timer:
-0322 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
-0323 c4020000 rtnbit0 mouse_low_voltage_flag 
-0324 68014682 fetch 2 ,mem_ui_state_map 
-0325 c3858000 rtnbit1 ui_state_ble_adv 
-0326 c3830000 rtnbit1 ui_state_bt_discovery 
-0327 6800cb07 fetch 1 ,mem_mouse_multi_led_blink_count 
-0328 247a0000 nrtn blank 
-0329 6800cb03 fetch 1 ,mem_mouse_multi_led_on_timer 
-032a 247a0000 nrtn blank 
-032b 6800c6cf fetch 1 ,mem_adc_low_volatage_led_timer_count 
-032c 1fe0fe01 pincrease 1 
-032d 6000c6cf store 1 ,mem_adc_low_volatage_led_timer_count 
-032e c0018309 beq 3 ,p_mouse_multi_led_off 
-032f 1fe67c14 sub pdata ,20 ,null 
-0330 24210332 nbranch p_mouse_adc_low_volatage_led_timer_count_clean ,positive 
-0331 20600000 rtn 
+0323 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
+0324 c4020000 rtnbit0 mouse_low_voltage_flag 
+0325 68014682 fetch 2 ,mem_ui_state_map 
+0326 c3858000 rtnbit1 ui_state_ble_adv 
+0327 c3830000 rtnbit1 ui_state_bt_discovery 
+0328 6800cb07 fetch 1 ,mem_mouse_multi_led_blink_count 
+0329 247a0000 nrtn blank 
+032a 6800cb03 fetch 1 ,mem_mouse_multi_led_on_timer 
+032b 247a0000 nrtn blank 
+032c 6800c6cf fetch 1 ,mem_adc_low_volatage_led_timer_count 
+032d 1fe0fe01 pincrease 1 
+032e 6000c6cf store 1 ,mem_adc_low_volatage_led_timer_count 
+032f c001830a beq 3 ,p_mouse_multi_led_off 
+0330 1fe67c14 sub pdata ,20 ,null 
+0331 24210333 nbranch p_mouse_adc_low_volatage_led_timer_count_clean ,positive 
+0332 20600000 rtn 
 
 p_mouse_adc_low_volatage_led_timer_count_clean:
-0332 7046cf01 jam 1 ,mem_adc_low_volatage_led_timer_count 
-0333 202002fe branch p_mouse_multi_led_on 
+0333 7046cf01 jam 1 ,mem_adc_low_volatage_led_timer_count 
+0334 202002ff branch p_mouse_multi_led_on 
 
 p_mouse_adc_read:
-0334 20600000 rtn 
 0335 680246d3 fetch mouse_flag_len ,mem_mouse_flag 
 0336 c40d0000 rtnbit0 mouse_enable_adc 
 0337 6800c6ce fetch 1 ,mem_adc_read_timer 
@@ -1099,7 +1099,7 @@
 0348 6800cb0a fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
 0349 207a0000 rtn blank 
 034a 704b0a00 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
-034b 20200309 branch p_mouse_multi_led_off 
+034b 2020030a branch p_mouse_multi_led_off 
 
 p_adc_set_mode:
 034c 6800c22d fetch 1 ,mem_adc_config_flag 
@@ -1269,7 +1269,7 @@
 03ca 2feffe01 isolate1 mode_4_mouse ,pdata 
 03cb 204083d6 call p_check_51cmd_adv ,true 
 03cc 204042c4 call mouse_start_discovery_norandom + 13 
-03cd 20200314 branch p_mouse_discovery_multi_led_blink 
+03cd 20200315 branch p_mouse_discovery_multi_led_blink 
 
 p_mouse_store_eerpom_random_addr_increase_count:
 03ce d8400002 arg 2 ,temp 
@@ -1291,7 +1291,7 @@
 03da 20207df4 branch check_51cmd_adv 
 
 p_mouse_stop_discovery:
-03db 20400306 call p_mouse_multi_led_blink_off 
+03db 20400307 call p_mouse_multi_led_blink_off 
 03dc 58000000 setarg 0 
 03dd 600146ac store 2 ,mem_mouse_discovery_timer 
 03de 20400139 call p_mouse_sensor_poweron 
Index: 24G&BLE/output/ramcode.rom
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/output/ramcode.rom	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/output/ramcode.rom	(working copy)
@@ -249,12 +249,12 @@
 6808c703
 98467c00
 20228100
-20400310
+20400311
 6800c210
 c0198102
 c01a0105
 20600000
-20400310
+20400311
 20200193
 680341d0
 203a33eb
@@ -504,7 +504,7 @@
 6000c77a
 1fe0fe02
 60014b07
-2040031e
+2040031f
 20203d74
 704b09ff
 d8400001
@@ -528,7 +528,7 @@
 c01d0262
 c01e3f8d
 2020417d
-2040031b
+2040031c
 2040077f
 202041c3
 58000007
@@ -576,7 +576,7 @@
 6000c808
 7041e312
 2020340e
-2040031b
+2040031c
 70480900
 202042ca
 6800c808
@@ -642,13 +642,13 @@
 204002b2
 20400297
 204002bb
-204002e0
+204002e1
 20404231
 20404234
-204002db
+204002de
 2040423a
-20400334
-20400322
+20400335
+20400323
 20200294
 da604809
 da40637a
@@ -713,13 +713,16 @@
 7046d901
 d8e00006
 202043d2
-204002d0
+204002d3
+70479e28
+680146a8
+600146ae
 6800c6d9
 c1000000
 7046d900
 20600000
 da604afe
-da4002d3
+da4002d6
 2020336d
 680246d3
 c3830000
@@ -731,22 +734,20 @@
 20204370
 6800c6f5
 c302c237
-6800c6d9
-c1000000
 20204237
 6800caff
 207a0000
 6800cb02
-c00002e6
-c00082ee
+c00002e7
+c00082ef
 20600000
-204002fe
+204002ff
 6800cb03
 1fe0fe01
 6000cb03
 6808cb04
 98467c00
-20428309
+2042830a
 20600000
 6800cb05
 1fe0ffff
@@ -755,14 +756,14 @@
 6800cb06
 6000cb05
 6800cb08
-203a02fa
+203a02fb
 6800cb07
-203a0306
+203a0307
 1fe0ffff
 6000cb07
 6800cb01
-c0008309
-c00002fe
+c000830a
+c00002ff
 20600000
 704b0101
 6808cb00
@@ -776,7 +777,7 @@
 704b0700
 704b0800
 6800cb07
-243a030d
+243a030e
 704aff00
 704b0200
 704b0300
@@ -795,11 +796,11 @@
 20600000
 6800cb03
 247a0000
-20200306
+20200307
 704b050a
 704b0605
 704b0801
-20200318
+20200319
 680246d3
 c4020000
 68014682
@@ -812,13 +813,12 @@
 6800c6cf
 1fe0fe01
 6000c6cf
-c0018309
+c001830a
 1fe67c14
-24210332
+24210333
 20600000
 7046cf01
-202002fe
-20600000
+202002ff
 680246d3
 c40d0000
 6800c6ce
@@ -841,7 +841,7 @@
 6800cb0a
 207a0000
 704b0a00
-20200309
+2020030a
 6800c22d
 c001034f
 202068ec
@@ -971,7 +971,7 @@
 2feffe01
 204083d6
 204042c4
-20200314
+20200315
 d8400002
 da2047c2
 da40005f
@@ -985,7 +985,7 @@
 58000005
 e0c08000
 20207df4
-20400306
+20400307
 58000000
 600146ac
 20400139
Index: 24G&BLE/program/patch.prog
===================================================================
--- /branch/mouse_project/LeXiang/24G&BLE/program/patch.prog	(revision 545)
+++ /branch/mouse_project/LeXiang/24G&BLE/program/patch.prog	(working copy)
@@ -1980,6 +1980,9 @@
 	branch mouse_disable_function_flag
 p_mouse_select_device_button_down:
 	call p_mouse_button_select_device_timer
+	jam 40,mem_mouse_null_enter_hibernate_timer
+	fetch 2,mem_mouse_direct_timeout
+	store 2,mem_mouse_direct_timer
 	fetch 1,mem_select_device_button_statue
 	rtneq DPI_BUTTON_STATE_DOWN
 	jam DPI_BUTTON_STATE_DOWN,mem_select_device_button_statue
@@ -2002,8 +2005,6 @@
 p_mouse_check_direct_timeout_timer:
 	fetch 1,mem_config_function_enable
 	bbit0 ENABLE_SELECT_DEVICE_BY_GPIO_BUTTON,mouse_check_direct_timeout_timer
-	fetch 1,mem_select_device_button_statue
-	rtneq DPI_BUTTON_STATE_DOWN
 	branch mouse_check_direct_timeout_timer
 
 
@@ -2038,7 +2039,7 @@
 	branch p_mouse_multi_led_blink_off,blank
 	increase -1,pdata
 	store 1,mem_mouse_multi_led_blink_count
-p_mouse_multi_led_blink_count_no_limited:	
+p_mouse_multi_led_blink_count_no_limited:
 	fetch 1,mem_mouse_multi_led_state
 	beq ON,p_mouse_multi_led_off
 	beq OFF,p_mouse_multi_led_on
@@ -2122,7 +2123,6 @@
 
 ifdef ADC_ENABLE
 p_mouse_adc_read:
-	rtn
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	rtnbit0 MOUSE_ENABLE_ADC
 	fetch 1,mem_adc_read_timer
