-->
Page 1 of 1

[CLOSED] Simple loop can't count more than 127

PostPosted: Wed Nov 11, 2015 2:14 pm
by MichelBen
Hi,

I've flash this bin : nodemcu_float_0.9.6-dev_20150704.bin

and when I run this script :
Code: Select allfor i = 1 , 99999999 do
    print("I m waiting to sleep " .. i)
end


Console displays :
Code: Select allI m waiting to sleep 125
I m waiting to sleep 126
I m waiting to sleep 127
I m waiting to sleeð†„FêŠâF
�•ŽF
¥”Œ¦ô


NodeMCU 0.9.6 build 20150704  powered by Lua 5.1.4
lua: cannot open init.lua
> =node.heap()
33928


Any idea ?

Re: Simple loop can't count more than 127

PostPosted: Wed Nov 11, 2015 3:20 pm
by jankop
Yes.

Code: Select allfor i = 1 , 99999999 do
    print("I m waiting to sleep " .. i)
   tmr.wdclr()
end

Re: Simple loop can't count more than 127

PostPosted: Sat Nov 14, 2015 5:18 am
by MichelBen
Thanks.