jsWarn does not show vars correctly #5803
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2017-08-07 by @gfwilliams My guess in You just need to cast the values to be 32 bit:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-08-07 by JumJum
During debugging for software PWM some jsWarn (in jstimer, function jstPinPWM) have been used.
Looks to me, that 2nd var of same type is always shown as zero.
See attached code, where only sequence of 2 vars is changed:
Result in debug window is:
WARNING: duty:0.5,period:100000,pulse:0
WARNING: duty:0.5,pulse:50000,period:0
Or is %d the wrong format ?
Beta Was this translation helpful? Give feedback.
All reactions