mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
use correct lua not equal
This commit is contained in:
parent
5607ab96ad
commit
fbb536f4ad
@ -218,13 +218,13 @@ function M.fetch_POST(request, response)
|
|||||||
|
|
||||||
local gcodeFiles = " "
|
local gcodeFiles = " "
|
||||||
local startCode = request:get("start_code")
|
local startCode = request:get("start_code")
|
||||||
if startCode != nil then
|
if not startCode then
|
||||||
gcodeFiles = gcodeFiles .. '/tmp/startcode '
|
gcodeFiles = gcodeFiles .. '/tmp/startcode '
|
||||||
io.open('/tmp/startcode', 'w+').write(startCode)
|
io.open('/tmp/startcode', 'w+').write(startCode)
|
||||||
end
|
end
|
||||||
|
|
||||||
local endCode = request:get("end_code")
|
local endCode = request:get("end_code")
|
||||||
if endCode != nil then
|
if not endCode then
|
||||||
gcodeFiles = gcodeFiles .. '/tmp/endcode '
|
gcodeFiles = gcodeFiles .. '/tmp/endcode '
|
||||||
io.open('/tmp/endcode', 'w+').write(endCode)
|
io.open('/tmp/endcode', 'w+').write(endCode)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user