Skip to content

Commit 3f41f1e

Browse files
Virtual for void show default in display controllers (#866)
* Change ShowDefault to virtual in layer_controller.h * Change ShowDefault to virtual in ssd1306.h
1 parent 40c6e8c commit 3f41f1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

display/layer_controller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ class StandarColorDisplayController : public SaberBase, public Looper, public Co
547547
}
548548
}
549549

550-
void ShowDefault(bool ignore_lockup = false) {
550+
virtual void ShowDefault(bool ignore_lockup = false) {
551551
PVLOG_VERBOSE << "LC ShowDefault()\n";
552552
if (SaberBase::IsOn()) {
553553
if (SaberBase::Lockup() && SCR_lock && !ignore_lockup) {

display/ssd1306.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class StandardDisplayController : public DisplayControllerBase<Width, col_t>, pu
355355
return last_delay_ = FillFrameBuffer2(advance);
356356
}
357357

358-
void ShowDefault(bool ignore_lockup = false) {
358+
virtual void ShowDefault(bool ignore_lockup = false) {
359359
screen_ = SCREEN_PLI;
360360
t_ = 0;
361361
if (SaberBase::IsOn()) {

0 commit comments

Comments
 (0)