Merge pull request #621 from opentx/bsongis/Issue554_trims_relative_default
All good!
This commit is contained in:
+11
-1
@@ -1101,8 +1101,18 @@ PACK(typedef struct t_SwashRingData { // Swash Ring data
|
||||
#if defined(PCBSTD)
|
||||
#define TRIMS_ARRAY int8_t trim[4]; int8_t trim_ext:8
|
||||
#define TRIMS_ARRAY_SIZE 5
|
||||
#define trim_t int16_t
|
||||
#else
|
||||
#define TRIMS_ARRAY int16_t trim[4]
|
||||
#if defined(PCBTARANIS)
|
||||
PACK(typedef struct {
|
||||
int16_t value:11;
|
||||
uint16_t mode:5;
|
||||
}) trim_t;
|
||||
#define TRIM_MODE_NONE 0x1F // 0b11111
|
||||
#else
|
||||
#define trim_t int16_t
|
||||
#endif
|
||||
#define TRIMS_ARRAY trim_t trim[4]
|
||||
#define TRIMS_ARRAY_SIZE 8
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user