This commit is contained in:
Bertrand Songis
2015-09-07 21:46:12 +02:00
parent 99d3afbe1a
commit c8525b311f
6 changed files with 34 additions and 66 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ bool isSwitchAvailableInTimers(int swtch)
bool isThrottleSourceAvailable(int source)
{
if (source == THROTTLE_SOURCE_S3 && !IS_POT_AVAILABLE(POT3))
if (source >= THROTTLE_SOURCE_FIRST_POT && source < THROTTLE_SOURCE_FIRST_POT+NUM_POTS && !IS_POT_AVAILABLE(POT1+source-THROTTLE_SOURCE_FIRST_POT))
return false;
else
return true;