Fix DisplaySevenSegment compilation error

This commit is contained in:
Theo Arends 2020-05-25 10:21:36 +02:00
parent b058fb0dfc
commit c333b67669
2 changed files with 5 additions and 3 deletions

View File

@ -239,8 +239,6 @@ void SevensegTime(boolean time_24)
sevenseg.writeDisplay();
}
#endif // USE_DISPLAY_MODES1TO5
void SevensegRefresh(void) // Every second
{
if (disp_power) {
@ -262,6 +260,8 @@ void SevensegRefresh(void) // Every second
}
}
#endif // USE_DISPLAY_MODES1TO5
/*********************************************************************************************\
* Interface
\*********************************************************************************************/
@ -286,9 +286,11 @@ bool Xdsp11(uint8_t function)
case FUNC_DISPLAY_CLEAR:
SevensegClear();
break;
#ifdef USE_DISPLAY_MODES1TO5
case FUNC_DISPLAY_EVERY_SECOND:
SevensegRefresh();
break;
#endif // USE_DISPLAY_MODES1TO5
case FUNC_DISPLAY_ONOFF:
case FUNC_DISPLAY_POWER:
SevensegOnOff();