mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 03:57:51 +00:00
fix bug
This commit is contained in:
parent
f6d77be250
commit
9bdb6ff66d
@ -235,9 +235,9 @@ uint16_t ReadHubsan()
|
|||||||
phase &= ~WAIT_WRITE;
|
phase &= ~WAIT_WRITE;
|
||||||
if(id_data == ID_PLUS)
|
if(id_data == ID_PLUS)
|
||||||
{
|
{
|
||||||
if(state == BIND_7 && packet[2] == 9)
|
if(phase == BIND_7 && packet[2] == 9)
|
||||||
{
|
{
|
||||||
state = DATA_1;
|
phase = DATA_1;
|
||||||
A7105_WriteReg(A7105_1F_CODE_I, 0x0F);
|
A7105_WriteReg(A7105_1F_CODE_I, 0x0F);
|
||||||
BIND_DONE;
|
BIND_DONE;
|
||||||
return 4500;
|
return 4500;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user