diff --git a/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp b/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp index 3fd6fb343..534a52c6e 100644 --- a/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp +++ b/companion/src/firmwares/opentx/opentxTaranisSimulator.cpp @@ -200,7 +200,7 @@ inline int geteepromsize() { #include "radio/src/lua/src/lcorolib.c" -int16_t g_anas[NUM_STICKS+5]; +int16_t g_anas[NUM_STICKS+NUM_POTS]; uint16_t anaIn(uint8_t chan) { diff --git a/companion/src/firmwares/opentx/opentxTaranisX9ESimulator.cpp b/companion/src/firmwares/opentx/opentxTaranisX9ESimulator.cpp index 2933a7833..34c77617d 100755 --- a/companion/src/firmwares/opentx/opentxTaranisX9ESimulator.cpp +++ b/companion/src/firmwares/opentx/opentxTaranisX9ESimulator.cpp @@ -205,7 +205,7 @@ inline int geteepromsize() { #include "radio/src/lua/src/ltablib.c" #include "radio/src/lua/src/lcorolib.c" -int16_t g_anas[NUM_STICKS+5]; +int16_t g_anas[NUM_STICKS+NUM_POTS]; uint16_t anaIn(uint8_t chan) {