The setClockSource function which is called from the end of pinMode does not check status before changing clock source.
This isn't usually an issue because users don't call it directly and pinMode performs this check. But the check should be performed in setClockSource nonetheless for safety.