diff --git a/companion/src/boards.cpp b/companion/src/boards.cpp index 2214e4c1d..b500816d2 100644 --- a/companion/src/boards.cpp +++ b/companion/src/boards.cpp @@ -151,10 +151,10 @@ const SwitchInfo Boards::getSwitchInfo(Board::Type board, unsigned index) } else { const Board::SwitchInfo switches[] = { + {SWITCH_3POS, "3POS"}, {SWITCH_2POS, "THR"}, {SWITCH_2POS, "RUD"}, {SWITCH_2POS, "ELE"}, - {SWITCH_3POS, "3POS"}, {SWITCH_2POS, "AIL"}, {SWITCH_2POS, "GEA"}, {SWITCH_TOGGLE, "TRN"} diff --git a/radio/src/targets/simu/simpgmspace.cpp b/radio/src/targets/simu/simpgmspace.cpp index 23b8d6775..7bf4ff84a 100644 --- a/radio/src/targets/simu/simpgmspace.cpp +++ b/radio/src/targets/simu/simpgmspace.cpp @@ -308,40 +308,40 @@ void simuSetSwitch(uint8_t swtch, int8_t state) SWITCH_3_CASE(17, SWITCHES_GPIO_REG_R_L, SWITCHES_GPIO_REG_R_H, SWITCHES_GPIO_PIN_R_L, SWITCHES_GPIO_PIN_R_H) #endif #elif defined(PCBSKY9X) - SWITCH_CASE(0, PIOC->PIO_PDSR, 1<<20) - SWITCH_CASE(1, PIOA->PIO_PDSR, 1<<15) - SWITCH_CASE(2, PIOC->PIO_PDSR, 1<<31) - SWITCH_3_CASE(3, PIOC->PIO_PDSR, PIOC->PIO_PDSR, 0x00004000, 0x00000800) + SWITCH_3_CASE(0, PIOC->PIO_PDSR, PIOC->PIO_PDSR, 0x00004000, 0x00000800) + SWITCH_CASE(1, PIOC->PIO_PDSR, 1<<20) + SWITCH_CASE(2, PIOA->PIO_PDSR, 1<<15) + SWITCH_CASE(3, PIOC->PIO_PDSR, 1<<31) SWITCH_CASE(4, PIOA->PIO_PDSR, 1<<2) SWITCH_CASE(5, PIOC->PIO_PDSR, 1<<16) SWITCH_CASE(6, PIOC->PIO_PDSR, 1<<8) #elif defined(PCBGRUVIN9X) - SWITCH_CASE(0, ping, 1<