diff --git a/src/protocols/pulses_arm.cpp b/src/protocols/pulses_arm.cpp index 66c36861a..4fe850e79 100644 --- a/src/protocols/pulses_arm.cpp +++ b/src/protocols/pulses_arm.cpp @@ -62,7 +62,7 @@ void setupPulses(unsigned int port) break; #if defined(DSM2) case MODULE_TYPE_DSM2: - required_protocol = PROTO_DSM2_LP45 + limit((int8_t)DSM2_PROTO_LP45, g_model.moduleData[EXTERNAL_MODULE].rfProtocol, (int8_t)DSM2_PROTO_DSMX); + required_protocol = limit(DSM2_PROTO_LP45, PROTO_DSM2_LP45+g_model.moduleData[EXTERNAL_MODULE].rfProtocol, DSM2_PROTO_DSMX); break; #endif default: