Some VS compilation fixes

This commit is contained in:
Kilrah
2019-05-04 11:13:27 +02:00
parent dc1987e0ab
commit 9c46abf1e5
3 changed files with 26 additions and 9 deletions
+6 -2
View File
@@ -496,12 +496,16 @@ enum Analogs {
#define STICKS_PWM_ENABLED() false
#endif
PACK(typedef struct {
#if NUM_PWMSTICKS > 0
PACK(typedef struct {
uint8_t sticksPwmDisabled:1;
#endif
uint8_t pxx2Enabled:1;
}) HardwareOptions;
#else
PACK(typedef struct {
uint8_t pxx2Enabled:1;
}) HardwareOptions;
#endif
extern HardwareOptions hardwareOptions;