Skip to content

Commit 1edd476

Browse files
committed
Fix compilation on 16x2 serial displays
1 parent 07c347b commit 1edd476

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Arduino_Pedelec_Controller/display.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ static void display_nokia_view_graphic()
10041004
}
10051005
#endif
10061006

1007+
#if (DISPLAY_TYPE & DISPLAY_TYPE_NOKIA)
10071008
static void display_nokia_view_human()
10081009
{
10091010

@@ -1021,7 +1022,7 @@ static void display_nokia_view_human()
10211022
//print human wh in bottom left corner
10221023
lcd.setCursorInPixels(0,5);
10231024
lcd.print(wh_human,0); lcd.print(MY_F(" WhHuman"));
1024-
1025+
10251026
//print bar graph left side, showing human wh (solid) vs motor wh (clear)
10261027
lcd.setCursorInPixels(0,1);
10271028
lcd.drawVerticalBar((word)(wh+wh_human), (word)(wh_human), (word)(0), 11, 4);
@@ -1034,9 +1035,11 @@ static void display_nokia_view_human()
10341035
lcd.print(pulse_human);
10351036
lcd.setCursorInPixels(75,5);
10361037
lcd.drawBitmap(bitmapHeartSymbol, 5,1);
1037-
#endif
1038+
#endif
10381039
}
1040+
#endif
10391041

1042+
#if (DISPLAY_TYPE & DISPLAY_TYPE_NOKIA)
10401043
static void display_nokia_view_environment()
10411044
{
10421045
#if defined(SUPPORT_BMP085) || defined(SUPPORT_DSPC01)
@@ -1071,6 +1074,7 @@ static void display_nokia_view_environment()
10711074
lcd.print(MY_F(" C "));
10721075
#endif
10731076
}
1077+
#endif
10741078

10751079
static void display_nokia_update()
10761080
{

0 commit comments

Comments
 (0)