mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
REGISTER fix
This commit is contained in:
parent
edc6bf148a
commit
ad555855c2
2 changed files with 1 additions and 4 deletions
|
@ -81,7 +81,7 @@ int zchar2str(char * dest, const char * src, int size)
|
||||||
bool cmpStrWithZchar(const char * charString, const char * zcharString, int size)
|
bool cmpStrWithZchar(const char * charString, const char * zcharString, int size)
|
||||||
{
|
{
|
||||||
for (int i=0; i<size; i++) {
|
for (int i=0; i<size; i++) {
|
||||||
if (char2zchar(charString[i]) != (int8_t)zcharString[i]) {
|
if (charString[i] != zchar2char(zcharString[i])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,9 +123,6 @@ void processRegisterFrame(uint8_t module, uint8_t * frame)
|
||||||
moduleSettings[module].mode = MODULE_MODE_NORMAL;
|
moduleSettings[module].mode = MODULE_MODE_NORMAL;
|
||||||
POPUP_INFORMATION(STR_REG_OK);
|
POPUP_INFORMATION(STR_REG_OK);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
TRACE("KO %s %s", &frame[4], reusableBuffer.moduleSetup.pxx2.registerRxName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue