fix missing endif in MCU selection

Apologies for sending broken code. Fixed! :(