You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • My guess in period and pulseLength are uint64 values, not uint32? This is a classic C printf-style problem.

    You just need to cast the values to be 32 bit:

    jsWarn("duty:%f,period:%d,pulse:%d \n",dutyCycle,(uint32_t)period,(uint32_t­)pulseLength);
    jsWarn("duty:%f,pulse:%d,period:%d \n",dutyCycle,(uint32_t)pulseLength,(uin­t32_t)period);
    
    
About

Avatar for Gordon @Gordon started