Commit abab058
authored
Update OpenFIREcommon.cpp - assign OLED.display pointer to nullptr
By assigning the OLED.display pointer to nullptr, the program works and the micro doesn't crash, even if the OLED display is not connected even if the pins are configured.1 parent 65f50fc commit abab058
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
0 commit comments