diff --git a/tasmota/tasmota_template.h b/tasmota/tasmota_template.h index 70bcff270..9b27c12d9 100644 --- a/tasmota/tasmota_template.h +++ b/tasmota/tasmota_template.h @@ -169,14 +169,14 @@ enum ProgramSelectablePins { GPIO_USER, // User configurable needs to be 2047 GPIO_MAX }; -#define MAX_OPTIONS_A 2 // Increase if more bits are used from GpioOptionABits +#define MAX_OPTIONS_A 3 // Increase if more bits are used from GpioOptionABits typedef union { // Restricted by MISRA-C Rule 18.4 but so useful... uint32_t data; // Allow bit manipulation using SetOption struct { // GPIO Option_A1 .. Option_A32 uint32_t pwm1_input : 1; // bit 0 (v9.2.0.1) - Option_A1 - (Light) Change PWM1 to input on power off and no fade running (1) uint32_t dummy_energy : 1; // bit 1 (v9.3.1.2) - Option_A2 - (Energy) Enable dummy values - uint32_t spare02 : 1; // bit 2 + uint32_t udisplay_driver : 1; // bit 2 Universal display driver uint32_t spare03 : 1; // bit 3 uint32_t spare04 : 1; // bit 4 uint32_t spare05 : 1; // bit 5 diff --git a/tasmota/xdsp_17_universal.ino b/tasmota/xdsp_17_universal.ino index eb4a9dbd8..c72b4cb85 100644 --- a/tasmota/xdsp_17_universal.ino +++ b/tasmota/xdsp_17_universal.ino @@ -83,7 +83,7 @@ void Init_uDisp(void) { char *ddesc = 0; char *fbuff; - if (1) { + if (TasmotaGlobal.gpio_optiona.udisplay_driver) { Settings.display_model = XDSP_17; fg_color = 1;