Skip to content

Commit bbdaed6

Browse files
committed
Fix build failure on HW revision 1
There is no fet_out on HW rev 1 :D
1 parent 09c52ea commit bbdaed6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Arduino_Pedelec_Controller/Arduino_Pedelec_Controller.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,10 @@ void save_shutdown()
12551255

12561256
save_eeprom(); //save variables now
12571257

1258+
#if HARDWARE_REV >= 2
12581259
digitalWrite(fet_out,FET_OFF); //turn off
12591260
while(true); //there is nothing more to do -> stay in endless loop until turned off
1261+
#endif
12601262
}
12611263

12621264
void handle_unused_pins()

0 commit comments

Comments
 (0)