pkg/devices/lcd/src/common/lcd-device.cc | raw changeset files shortlog | jz4780-spi-lcd |
1.1 --- a/pkg/devices/lcd/src/common/lcd-device.cc Fri Nov 10 22:30:39 2023 +0100 1.2 +++ b/pkg/devices/lcd/src/common/lcd-device.cc Sat Nov 11 23:23:22 2023 +0100 1.3 @@ -27,12 +27,14 @@ 1.4 1.5 void Lcd_device::disable_display() 1.6 { 1.7 - _display->disable(); 1.8 + if (_display != NULL) 1.9 + _display->disable(); 1.10 } 1.11 1.12 void Lcd_device::enable_display() 1.13 { 1.14 - _display->enable(); 1.15 + if (_display != NULL) 1.16 + _display->enable(); 1.17 } 1.18 1.19