Skip to content

Commit 8689685

Browse files
committed
Turn display off before dtor'ing
1 parent 9e1d677 commit 8689685

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Ssd1306.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class WipperSnapper_I2C_Driver_Out_Ssd1306
5353
*/
5454
~WipperSnapper_I2C_Driver_Out_Ssd1306() {
5555
if (_display != nullptr) {
56+
_display->ssd1306_command(SSD1306_DISPLAYOFF);
5657
delete _display;
5758
_display = nullptr;
5859
}

0 commit comments

Comments
 (0)