Skip to content

Commit 0838a2f

Browse files
author
jenkie
committed
Missing directives for Sempu BB
1 parent 56128dd commit 0838a2f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Arduino_Pedelec_Controller/display.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,6 @@ static void display_nokia_view_human()
11291129
lcd.print(MY_F(" CAD "));
11301130
lcd.print(cad);
11311131
lcd.print(MY_F(" "));
1132-
#if defined(SUPPORT_XCELL_RT) //show left bar with human and battery wh
11331132
lcd.setCursor(3,3); //print human power centered
11341133
lcd.print(MY_F(" W ")); lcd.print(power_human,0);
11351134
lcd.print(MY_F(" "));

Arduino_Pedelec_Controller/switches.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void action_set_soft_poti(int new_throttle_stat)
101101

102102
{
103103
#if CONTROL_MODE == CONTROL_MODE_TORQUE //human power control mode
104-
#ifdef SUPPORT_XCELL_RT
104+
#if defined(SUPPORT_XCELL_RT) || defined(SUPPORT_SEMPU)
105105
buffer[9]='%';
106106
power_poti = poti_stat/1023.0* curr_power_poti_max; //power_poti_max is in this control mode interpreted as percentage. Example: power_poti_max=200 means; motor power = 200% of human power
107107
#endif

0 commit comments

Comments
 (0)