Change different parameters and fix type in radio sleep code