Spektrum passive power: Only use if present

This commit is contained in:
Lorenz Meier
2020-12-31 12:26:49 +01:00
parent 641cc33d79
commit a444d2610a
+1 -1
View File
@@ -64,7 +64,7 @@ RCInput::RCInput(const char *device) :
RCInput::~RCInput() RCInput::~RCInput()
{ {
#if defined(SPEKTRUM_POWER) #if defined(SPEKTRUM_POWER_PASSIVE)
// Disable power controls for Spektrum receiver // Disable power controls for Spektrum receiver
SPEKTRUM_POWER_PASSIVE(); SPEKTRUM_POWER_PASSIVE();
#endif #endif