Hi would need that function too, since my bike lags from time to time and i want to find out if its the torque sensor or the pas sensor....
maybe try setting ui16_oem_wheel_speed to eg 50... before if(ui16_vlcd6_wheel_speed == 0)
or try
uint16_t ui16_temp;
ui16_temp = (uint16_t)...