mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 02:53:49 +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 startCode = request:get("start_code")
|
||||
if startCode != nil then
|
||||
if not startCode then
|
||||
gcodeFiles = gcodeFiles .. '/tmp/startcode '
|
||||
io.open('/tmp/startcode', 'w+').write(startCode)
|
||||
end
|
||||
|
||||
local endCode = request:get("end_code")
|
||||
if endCode != nil then
|
||||
if not endCode then
|
||||
gcodeFiles = gcodeFiles .. '/tmp/endcode '
|
||||
io.open('/tmp/endcode', 'w+').write(endCode)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user