fix(t8): abs() usage issue in setBindProtocolSelection (#6433)
This commit is contained in:
@@ -28,7 +28,7 @@ bool setBindProtocolSelection()
|
|||||||
int16_t yPos = calibratedAnalogs[ADC_MAIN_LV];
|
int16_t yPos = calibratedAnalogs[ADC_MAIN_LV];
|
||||||
|
|
||||||
// Center: D8
|
// Center: D8
|
||||||
if (abs(xPos < 50 && abs(yPos) < 50)) {
|
if (abs(xPos) < 50 && abs(yPos) < 50) {
|
||||||
g_model.moduleData[INTERNAL_MODULE].multi.rfProtocol = MODULE_SUBTYPE_MULTI_FRSKY;
|
g_model.moduleData[INTERNAL_MODULE].multi.rfProtocol = MODULE_SUBTYPE_MULTI_FRSKY;
|
||||||
g_model.moduleData[INTERNAL_MODULE].subType = MULTI_FRSKYD_SUBTYPE_D8;
|
g_model.moduleData[INTERNAL_MODULE].subType = MULTI_FRSKYD_SUBTYPE_D8;
|
||||||
storageDirty(EE_MODEL);
|
storageDirty(EE_MODEL);
|
||||||
|
|||||||
Reference in New Issue
Block a user