Replaced a cast of the funciton pointer to powercycle with a wrapper calling powercycle which has the correct signature. The previous implementation was an instance of undefined behaviour according to the C standard.