fix: Use keysGetMaxTrims() instead of MAX_TRIMS (#3860)
* fix: use keysGetMaxTrims() instead of MAX_TRIMS * feat: add support for virtual trims This is necessary for radios like X-lite where half of the trims are simulated
This commit is contained in:
@@ -331,6 +331,8 @@
|
||||
#define TRIMS_GPIO_PIN_LVU LL_GPIO_PIN_0 // PB.00
|
||||
#define TRIMS_GPIO_REG_LVD GPIOB
|
||||
#define TRIMS_GPIO_PIN_LVD LL_GPIO_PIN_1 // PB.01
|
||||
#define TRIMS_VIRTUAL_RV
|
||||
#define TRIMS_VIRTUAL_RH
|
||||
#elif defined(RADIO_X7ACCESS)
|
||||
#define TRIMS_GPIO_REG_LHR GPIOD
|
||||
#define TRIMS_GPIO_PIN_LHR LL_GPIO_PIN_15 // PD.15
|
||||
|
||||
Reference in New Issue
Block a user