fixing ledcontroller compile errors