fix: timer throttle conditions on surface radio (#4502)

This commit is contained in:
3djc
2024-01-03 09:39:47 +10:00
committed by GitHub
parent 6c79bcfd6d
commit 7d18edc48d
2 changed files with 27 additions and 14 deletions
+5
View File
@@ -75,6 +75,11 @@ void saveTimers()
void evalTimers(int16_t throttle, uint8_t tick10ms)
{
#if defined(SURFACE_RADIO)
// For surface radio throttle off position is at 0%
throttle = 2 * abs(throttle - (RESX >> (RESX_SHIFT-6)));
#endif
for (uint8_t i=0; i<TIMERS; i++) {
tmrmode_t timerMode = g_model.timers[i].mode;
tmrstart_t timerStart = g_model.timers[i].start;