Fix crash in Universal Touch (#21026)

This commit is contained in:
s-hadinger 2024-03-25 11:41:21 +01:00 committed by GitHub
parent 15ae3e0fa5
commit bad2f4fb13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 9 deletions

View File

@ -456,18 +456,18 @@ class uDisplay : public Renderer {
uint8_t ut_array[16];
uint8_t ut_i2caddr;
uint8_t ut_spi_cs;
int8_t ut_reset;
int8_t ut_irq;
uint8_t ut_spi_cs = -1;
int8_t ut_reset = -1;
int8_t ut_irq = -1;
uint8_t ut_spi_nr;
TwoWire *ut_wire;
SPIClass *ut_spi;
TwoWire *ut_wire = nullptr;;
SPIClass *ut_spi = nullptr;;
SPISettings ut_spiSettings;
char ut_name[8];
uint8_t *ut_init_code;
uint8_t *ut_touch_code;
uint8_t *ut_getx_code;
uint8_t *ut_gety_code;
uint8_t *ut_init_code = nullptr;
uint8_t *ut_touch_code = nullptr;
uint8_t *ut_getx_code = nullptr;
uint8_t *ut_gety_code = nullptr;
#endif // USE_UNIVERSAL_TOUCH
};