getting GetPWM() to work

In API.h, a function called GetPWM() exists. However, if it is used using the User Code block in EasyC, an error is shown during compiling, saying that the function has not been defined. The GetPWM function is within an if statement, which might be why it does not work. Is there any way to get around this and see the value being sent to a motor port?

At the moment it seems the function doesn’t work correctly. As such it will be upto our programmer to fix/remove this function. In the mean time create a global variable and use it to command the motor speed. Then query it as needed.