mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
Fix the bug of memory release in documents.
This commit is contained in:
parent
f21908a65d
commit
c18f198af8
@ -274,5 +274,6 @@ braudrate:9600
|
|||||||
print(t.read(nil,t.C))
|
print(t.read(nil,t.C))
|
||||||
-- Don't forget to release it after use
|
-- Don't forget to release it after use
|
||||||
t = nil
|
t = nil
|
||||||
|
ds18b20 = nil
|
||||||
package.loaded["ds18b20"]=nil
|
package.loaded["ds18b20"]=nil
|
||||||
```
|
```
|
||||||
|
@ -109,6 +109,7 @@ print(t.readNumber(nil,t.F))
|
|||||||
t1, t2 = t.readNumber()
|
t1, t2 = t.readNumber()
|
||||||
-- Don't forget to release it after use
|
-- Don't forget to release it after use
|
||||||
t = nil
|
t = nil
|
||||||
|
ds18b20 = nil
|
||||||
package.loaded["ds18b20"]=nil
|
package.loaded["ds18b20"]=nil
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -151,6 +152,7 @@ print(t.read())
|
|||||||
print(t.read(nil,t.C))
|
print(t.read(nil,t.C))
|
||||||
-- Don't forget to release it after use
|
-- Don't forget to release it after use
|
||||||
t = nil
|
t = nil
|
||||||
|
ds18b20 = nil
|
||||||
package.loaded["ds18b20"]=nil
|
package.loaded["ds18b20"]=nil
|
||||||
```
|
```
|
||||||
####参见
|
####参见
|
||||||
|
@ -107,6 +107,7 @@ print(t.readNumber(nil,t.F))
|
|||||||
t1, t2 = t.readNumber()
|
t1, t2 = t.readNumber()
|
||||||
-- Don't forget to release it after use
|
-- Don't forget to release it after use
|
||||||
t = nil
|
t = nil
|
||||||
|
ds18b20 = nil
|
||||||
package.loaded["ds18b20"]=nil
|
package.loaded["ds18b20"]=nil
|
||||||
```
|
```
|
||||||
####See also
|
####See also
|
||||||
@ -148,6 +149,7 @@ print(t.read())
|
|||||||
print(t.read(nil,t.C))
|
print(t.read(nil,t.C))
|
||||||
-- Don't forget to release it after use
|
-- Don't forget to release it after use
|
||||||
t = nil
|
t = nil
|
||||||
|
ds18b20 = nil
|
||||||
package.loaded["ds18b20"]=nil
|
package.loaded["ds18b20"]=nil
|
||||||
```
|
```
|
||||||
####See also
|
####See also
|
||||||
|
Loading…
x
Reference in New Issue
Block a user