pwmtick must have a return value