1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 04:45:17 +03:00

Issue #767 - Extra Pot (S3) support

This commit is contained in:
bsongis 2014-03-01 18:54:08 +01:00
parent f9e6819b37
commit 3215346a1b
26 changed files with 180 additions and 164 deletions

View file

@ -407,18 +407,18 @@ uint16_t anaIn(uint8_t chan)
else if (chan<NUM_STICKS+NUM_POTS)
return th9xSim->knobs[chan-NUM_STICKS]->getValue();
#if defined(PCBTARANIS)
else if (chan == 8)
else if (chan == TX_VOLTAGE)
return 1000;
#elif defined(PCBSKY9X)
else if (chan == 7)
else if (chan == TX_VOLTAGE)
return 1500;
else if (chan == 8)
else if (chan == TX_CURRENT)
return 100;
#elif defined(PCBGRUVIN9X)
else if (chan == 7)
else if (chan == TX_VOLTAGE)
return 150;
#else
else if (chan == 7)
else if (chan == TX_VOLTAGE)
return 1500;
#endif
else