1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00

Merge branch 'master' into master

This commit is contained in:
Stefano Della Valle 2023-10-27 11:26:49 +02:00 committed by GitHub
commit 5ba6294622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 1111 additions and 139 deletions

View file

@ -56,6 +56,7 @@
#include "io/vtx.h"
#include "drivers/vtx_common.h"
#include "drivers/light_ws2811strip.h"
PG_REGISTER_ARRAY_WITH_RESET_FN(logicCondition_t, MAX_LOGIC_CONDITIONS, logicConditions, PG_LOGIC_CONDITIONS, 4);
@ -481,6 +482,17 @@ static int logicConditionCompute(
return false;
}
break;
#ifdef LED_PIN
case LOGIC_CONDITION_LED_PIN_PWM:
if (operandA >=0 && operandA <= 100) {
ledPinStartPWM((uint8_t)operandA);
} else {
ledPinStopPWM();
}
return operandA;
break;
#endif
default:
return false;