mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
1 byte flash saved :)
This commit is contained in:
parent
e6961585d7
commit
ed1d01e33a
3 changed files with 11 additions and 3 deletions
|
@ -77,6 +77,12 @@ void processRegisterFrame(uint8_t module, uint8_t * frame)
|
|||
// RX_ID follows, we discard it for now
|
||||
moduleSettings[module].counter = REGISTER_COUNTER_ID_RECEIVED;
|
||||
}
|
||||
else if (frame[3] == 0x01) {
|
||||
// PASSWORD follows, we check it is good
|
||||
if (memcmp(&frame[4], g_model.modelRegistrationID, LEN_REGISTRATION_ID) == 0) {
|
||||
moduleSettings[module].counter = REGISTER_COUNTER_PASSWORD_RECEIVED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void processRadioFrame(uint8_t module, uint8_t * frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue