The float array is declared inside a smaller scope, pointed to, and then used later. This simply moves the declaration outside of the if statement. Also remove two redundant lines.
The float array is declared inside a smaller scope, pointed to, and then used later. This simply moves the declaration outside of the if statement. Also remove two redundant lines.