Arduino Mega fix, 'pwmval' was not declared